Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect TCS calculation in .vcf.gz file due to bug #126

Open
tobyaicher opened this issue Jan 29, 2024 · 0 comments
Open

Incorrect TCS calculation in .vcf.gz file due to bug #126

tobyaicher opened this issue Jan 29, 2024 · 0 comments
Assignees

Comments

@tobyaicher
Copy link

Hi,

I was comparing the .vcf.gz and _subclones.txt outputs of Battenberg and noticed a discrepancy in the second state copy numbers. Specifically, it appears that when you add up the major and minor alleles of the second copy number state in the _subclones.txt file it does not equal the TCS field of the .vcf.gz file.

I looked in the code here:
https://github.com/cancerit/cgpBattenberg/blob/dev/perl/bin/battenberg_CN_to_VCF.pl

I found that it is because the code here:
$mt_cn_tot_sec = $mt_cn_maj + $mt_cn_min;

It is calculating mt_cn_tot_sec from the major and minor allele copy numbers of the FIRST copy number state, when it should be calculated using the second copy number state like this:
$mt_cn_tot_sec = $mt_cn_maj_sec + $mt_cn_min_sec;

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants