-
Notifications
You must be signed in to change notification settings - Fork 48
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
No true positives being found on some chromosomes #91
Comments
Hello, I'm able to recreate this error. Thanks for the informative ticket.
3.1-dev has a new 'file zipper' iteration technique that helped with performance and enabled some new features. However, it's clearly broken. In the short term, if you'd like to continue using 3.1-dev, you'd simply need to use the same sorting/indexing command on the base vcf as what comes from your pipeline. You'd also be okay staying with 3.0.1 for now as 3.1 isn't (supposed) to change any results, just expand bench annotations. I'll keep this ticket open for referencing commits while I work to fix this. |
Custom wrappers of pysam.VariantFile iterators works for now, for bench. Anywhere truvari.bench.file_zipper is used (e.g. collapse), I'll need to do the same wrapping. This will be considered technical debt until I can figure out a better long-term solution. Also, Dockerfile somehow became outdated/broke. Updated to use pip instead of easy_install to fix Minor pylint change in vcf2df and formatting in setup.py
Removed custom_iterator and refactored GenomeTree to RegionVCFIter. Better reuse of code and don't need the weird __next__/__iter__. Should be faster, particularly with includebeds Found an error where TruScore precision lost from float to int casting lost optimal matches.
Fixed and verified identical results on your test data between 3.0.1 and develop. Please let me know if you run into other issues and I'll be happy to help. |
Thanks for fixing it so fast! I’ll try it today/tomorrow and let you know if I run into any more issues.
Francis
From: Adam English ***@***.***>
Sent: 21 December 2021 00:30
To: spiralgenetics/truvari ***@***.***>
Cc: Francis Bursa ***@***.***>; Author ***@***.***>
Subject: Re: [spiralgenetics/truvari] No true positives being found on some chromosomes (Issue #91)
Fixed and verified identical results on your test data between 3.0.1 and develop. Please let me know if you run into other issues and I'll be happy to help.
—
Reply to this email directly, view it on GitHub<#91 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AW7X5TIMI7EPWIJZRQ7FOJ3UR7DA7ANCNFSM5KODXHQQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
IMPORTANT NOTICE: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Although we routinely screen for viruses, addressees should check this e-mail and any attachment for viruses. We make no warranty as to absence of viruses in this e-mail or any attachments.
|
Quick follow up. While trying to fix this and debugging with your data, I noticed an opportunity to improve some things. For your data, not much is different since the calls are of high-quality. However, a few calls are now finding a better, 'closer' match. You should be able to recreate this by checking out develop. If you're interested in seeing how I used your data to illustrate the new 'TruScore' and INS reciprocal overlap, see discussions #92 #93 |
Hi Adam,
Thanks – this all looks super interesting, I’ll have a closer look.
Francis
From: Adam English ***@***.***>
Sent: 21 December 2021 17:47
To: spiralgenetics/truvari ***@***.***>
Cc: Francis Bursa ***@***.***>; Author ***@***.***>
Subject: Re: [spiralgenetics/truvari] No true positives being found on some chromosomes (Issue #91)
Quick follow up. While trying to fix this and debugging with your data, I noticed an opportunity to improve some things. For your data, not much is different since the calls are of high-quality. However, a few calls are now finding a better, 'closer' match. You should be able to recreate this by checking out develop. If you're interested in seeing how I used your data to illustrate the new 'TruScore' and INS reciprocal overlap, see discussions #92<#92> #93<#93>
—
Reply to this email directly, view it on GitHub<#91 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AW7X5TKV5UGOKRAVKW3DDZDUSC4S5ANCNFSM5KODXHQQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
IMPORTANT NOTICE: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Although we routinely screen for viruses, addressees should check this e-mail and any attachment for viruses. We make no warranty as to absence of viruses in this e-mail or any attachments.
|
For some chromosomes no true positives are found at all. For other chromosomes the behaviour is normal.
I am using versions 3.0 and 3.1.0-dev (git show-ref --hash HEAD: 0aeccee), with the datasets at
https://labs.epi2me.io/gm24385_q20_2021.10/
downloaded using
aws s3 sync --no-sign-request s3://ont-open-data/gm24385_q20_2021.10/extra_analysis/structural_variants structural_variants
With version 3.0 the behaviour is as I would expect, i.e. similar proportions of FPs, FNs and TPs on every chromosome, and recall and precision > 90%. However, with version 3.1.0-dev recall and precision are down to ~50%.
Summary results files:
summary_3.0.txt
summary_dev.txt
Examining the output vcfs, this appears to be due to all calls in chromosomes 10-22 (i.e. all the double digit ones - possibly not a coincidence?) being called as FPs or FNs:
The command I am using is
truvari bench --passonly -b HG002_SVs_Tier1_v0.6.vcf.gz --includebed eval_high_conf.bed -p 0 -c cutesv_filtered_sorted.vcf.gz -f human_g1k_v37.fasta -o results_3.0
The text was updated successfully, but these errors were encountered: