Issues with lohSpec
0
0
Entering edit mode
@dhariapriyadarshani-14987
Last seen 6.4 years ago

Hi, 

  I am trying to use lohSpec to visualize loss of heterozygosity regions. Please find the attached code and the errors.

 

lohspec1a <- read.delim("C:/Users/pdharia/Desktop/GWASTools/Cluster/lohspec1a.raw")
source("https://bioconductor.org/biocLite.R")
biocLite("GenVisR")

library(GenVisR)

 lohSpec(lohspec1, path = NULL, fileExt = NULL,  y = NULL, genome = "hg19", gender = gender,  step = 1e+06, window_size = 2500000, normal = 0.5, colourScheme = "inferno", plotLayer = NULL,  method = "slide", out = "plot")

Error in lohSpec_qual(x, y, genome) : 

  Did not detect required column names in x, required columns are: chromosome position n_vaf t_vaf sample

 

My lohspec file has the following columns: chromosome position b_vaf t_vaf and sample. It is sorted by chromosome, position, and sample. 

 

I also tried writing the path instead of downloading the file in R, the code and error is as follows:

lohSpec(x= "C:/Users/pdharia/Desktop/GWASTools/Cluster/lohspec1a.txt", path = NULL, fileExt = NULL,  y = NULL, genome = "hg19", gender = NULL,  step = 1e+06, window_size = 2500000, normal = 0.5, colourScheme = "inferno", plotLayer = NULL,  method = "slide", out = "plot")


Error: $ operator is invalid for atomic vectors

 

Thank you for your help in advance!

 

genvisr lohSpec • 990 views
ADD COMMENT
0
Entering edit mode

From your presentation of the error message, it seems the function is expecting a column 'n_vaf' but your data has a column 'b_vaf'

ADD REPLY

Login before adding your answer.

Traffic: 513 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6