You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I don't fully understand why I obtained a pattern of integers (x) and half-integers (x + 0.5) when using call function. I expected to get only integers.
My test:
Assuming 100% tumor purity across my samples, I calculated the -threshold as follow (R code):
Please, notice the output said: Calling copy number with thresholds: -4.3 => 0, -1 => 1, 0 => 2, 0.6 => 3, 1 => 4, where I guess the first number of the pair is the log2 and the second one is the absolute copy number.
Then, if we retrieve all unique estimated copy-numbers from the output ${sampleName}".absoluteCN.cns" file, and revert them from the log2 transformation (using bash):
I wonder why there are half-integers (i.e. 0.5, 1.5, 2.5, 4.5 and 10.5) in the output. Are these copy-numbers defined in the context of a haploid genome or in the whole genome (diploid)?
Thanks in advance,
Javier
My version:
$cnvkit.py version
0.6.1-dev
The text was updated successfully, but these errors were encountered:
The copy numbers are relative to the specified ploidy (default 2) -- they are still log2 ratios with the same interpretation as the segmentation output (.cns). This is so that you can plot the .absoluteCN.cns file with the scatter/heatmap/diagram commands the same way you would with the original .cns file. The call command just rounds the segment means to what they would be if the true copy number were an integer.
To get the absolute integers in a human-readable form, try:
cnvkit.py export bed sampleName.absoluteCN.cns --show-neutral
Hi,
I don't fully understand why I obtained a pattern of integers (
x
) and half-integers (x + 0.5
) when usingcall
function. I expected to get only integers.My test:
Assuming 100% tumor purity across my samples, I calculated the -threshold as follow (
R code
):So I run the
cnvkit.py call
function using the following parameters:Please, notice the output said:
Calling copy number with thresholds: -4.3 => 0, -1 => 1, 0 => 2, 0.6 => 3, 1 => 4
, where I guess the first number of the pair is the log2 and the second one is the absolute copy number.Then, if we retrieve all unique estimated copy-numbers from the output
${sampleName}".absoluteCN.cns"
file, and revert them from the log2 transformation (usingbash
):I wonder why there are half-integers (i.e. 0.5, 1.5, 2.5, 4.5 and 10.5) in the output. Are these copy-numbers defined in the context of a haploid genome or in the whole genome (diploid)?
Thanks in advance,
Javier
My version:
$cnvkit.py version 0.6.1-dev
The text was updated successfully, but these errors were encountered: