Question: readSnpMatrix in FACETS gives error
gravatar for hsbinf
15 months ago by
hsbinf20 wrote:

Hi! I'm trying to run FACETS (allele-specific copy number and clonal heterogeneity analysis tool for high-throughput DNA sequencing).

I created a SNP matrix using the perl script But when I run it in R it gives an error.

rcmat <- readSnpMatrix("sample1_facets_input", skip=0L, err.thresh=Inf, del.thresh=Inf, perl.pileup=TRUE) 
Error in scan(filename, what = list(Chromosome = "", Position = 0, NOR.DP = 0,  : 
scan() expected 'a real', got 'chr1'

Any ideas why? I can run most of the samples, its just 1 sample that has this error.


ploidy cnv purity facets • 393 views
ADD COMMENTlink modified 15 months ago • written 15 months ago by hsbinf20

Just a guess: in that particular sample, your chromosomes have the 'chr' prefix, when they should be just encoded numerically,. Strip the 'chr' prefix from the input file and then retry.


ADD REPLYlink written 15 months ago by Kevin Blighe47k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 613 users visited in the last hour