I am a bit new to this, but I was able to generate copy number calls (and GC-adjusted calls). I moved towards the segmentation step of the workflow and, sucessfully importing the file in the BioConductor DNAcopy package using the command:
cn=read.table("varScan.copynumber.called",header=F)
I am having trouble executing the next step:
CNA.object <-CNA(genomdat = cn[,6], chrom = cn[,1], maploc = cn[,2], data.type = 'logratio')
Error in CNA(genomdat = cn[, 6], chrom = cn[, 1], maploc = cn[, 2], data.type = "logratio") : genomdat must be numeric
I looked at cn [,6] and it contains entries such as:
[99889] 34.8 19.0 46.8 55.1 56.6 52.6
[99895] 29.7 44.4 33.8 30.6 21.0 40.7
[99901] 42.4 46.5 65.4 98.7 82.5 83.6
These are numeric, so I cannot figure out what my problem is. Any help would be greatly appreciated.
Have you tried replacing cn[, 6] with as.numeric(cn[, 6]) ?