Thanks very much for your reply!
1) I used varscan copynumber(the commands in the top page) to generate my copynumber result ,like these :
chrom chr_start chr_stop num_positions normal_depth tumor_depth log2_ratio gc_content
1 65873 65972 100 66.3 91.5 0.464 45.0
1 69482 69513 32 150.8 15.8 -3.259 53.1
1 69514 69600 87 229.4 41.7 -2.461 50.6
the log2_ratio is the column 7,so I use DNAcopy like this :
library(DNAcopy)
cn <- read.table("$name.copynumber",header=F)
CNA.object <-CNA(genomdat = as.numeric(cn[,7]), chrom = as.numeric(cn[,1]), maploc = as.numeric(cn[,2]), data.type = 'logratio')
CNA.smoothed <- smooth.CNA(CNA.object)
segs <- segment(CNA.smoothed, verbose=1, min.width=2)
segs2 = segs$output
write.table(segs2[,2:6], file="out.file_test", row.names=F, col.names=F, quote=F, sep="\t")
I was so confused .
3) I test another sample which had only 4000 somatic variants,the report also like these:
source("run.R")
[1] "checking input data..." [1] "Not all variants fall within a provided copy number region. The copy number of these variants is assumed to be 2."
66 sites (of 4127 original sites) are copy number neutral and have adequate depth in all samples
65 sites (of 4127 original sites) were removed because of copy-number alterations
4061 sites (of 4127 original sites) were removed because of inadequate depth
4061 sites (of 4127 original sites) were removed because of copy-number alterations or inadequate depth
[1] "clustering..."
......
the script run.R like:
library(sciClone)
v0 = read.table("Sample_1.vafs", sep="\t")
cn0 = read.table("out.file_test")
cn0 = cn0[,c(1,2,3,5)]
clusterParams="empty"
sc = sciClone(vafs=list(v0), sampleNames=c("MMY4"), copyNumberCalls=list(cn0), minimumDepth=100, doClustering=TRUE, clusterParams=clusterParams,maximumClusters=10, copyNumberMargins=0.25, useSexChrs=FALSE)
writeClusterTable(sc, "clusters")
writeClusterSummaryTable(sc, "cluster.summary")
save.image("out.Rdata")
source("plot.R")
Hi, lyan:
Did you fix your problem? I had the similar problem with you. After running the DNA copy, my segment_mean value is very big. I have around 4000 somatic mutations. Thanks.
HY
I was following this :http://wp.zxzyl.com/?p=156
hope this helps. Lyan