I'm using Varscan2 to find CNV on cancer exomes. In the recommended workflow suggested by Varscan2 there is this code to apply the segmentation:
library(DNAcopy)
cn <- read.table("your.cn.file",header=F)
CNA.object <-CNA( genomdat = cn[,6], chrom = cn[,1], maploc = cn[,2], data.type = 'logratio')
CNA.smoothed <- smooth.CNA(CNA.object)
segs <- segment(CNA.smoothed, verbose=0, min.width=2)
segs2 = segs$output
write.table(segs2[,2:6], file="out.file", row.names=F, col.names=F, quote=F, sep="\t")
I think there is a mistake in the field genomedat=cn[,6]. It should be the field 7 of the copynumber file made by Varscan. Am I right? Thanks in advance