Hi,
I am using Sequenza on WES data.I remember that Sequenza will choose the solution with max SLPP value automatically, and use that ploidy to plot genome_view.pdf and generate segments.txt. But this time I find the solution choosed by Sequenza is not the one with max SLPP. I wonder if there is any change in v3.0.0.
Below is my code:
library(sequenza)
library(copynumber)
input_dir <- 'F:\\xiehe_ecc\\seqz_result\\'
output_dir <- 'F:\\xiehe_ecc\\seqz_cnv\\'
files <- dir(input_dir)
chromosome_list <- paste('chr', as.character(1:22), sep = '')
for(file in files){
sample <- strsplit(file, '\\.')[[1]][1]
dir.create(paste(output_dir, sample, sep = ''))
data <- sequenza.extract(paste(input_dir, file, sep = ''), chromosome.list = chromosome_list)
data.cp <- sequenza.fit(data)
sequenza.results(sequenza.extract = data, cp.table = data.cp, sample.id = sample, chromosome.list = chromosome_list, out.dir = paste(output_dir, sample, sep = ''))
}
Attached is the alternative solutions for one sample, as you can see, the ploidy with max SLPP is around 2, but the genome_view and CN_bars seems like 3-4 (ploidy).


By the way, I want to know how is ploidy calculated in Sequenza. I tried to calculate ploidy myselt using the segment file:
ploidy = sum(CNt * (end.pos - start.pos)) / sum(end.pos - start.pos)
but the ploidy I get is 3.146, not 2.2 or 3.4 in alternative solutions.
I would appreciate if you could give me some advice. Thank you!
Yang