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

Fix bug that results in an empty Vapor report #754

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ def main(argv: Optional[List[Text]] = None) -> get_truth_overlap.ConfidentVarian
vapor_support_old = vapor_rec['p_non_ref_old'] > 1 - arguments.vapor_min_precision
vapor_support_genotyped = vapor_rec['p_non_ref_genotyped'] > 1 - arguments.vapor_min_precision
vapor_support_read_threshold = vapor_rec['p_non_ref_read_threshold'] > 1 - arguments.vapor_min_precision
if vapor_support_old or vapor_support_genotyped or vapor_support_read_threshold:
vapor_support = vapor_support_old or vapor_support_genotyped or vapor_support_read_threshold
if vapor_support:
vapor_support_gt = vapor_rec[genomics_io.Keys.gt]
vapor_support_gq = vapor_rec[genomics_io.Keys.gq]
vapor_support_reads = vapor_rec[genomics_io.Keys.vapor_read_scores]
Expand Down Expand Up @@ -259,9 +260,9 @@ def main(argv: Optional[List[Text]] = None) -> get_truth_overlap.ConfidentVarian
sample,
record.info['SVTYPE'],
record.info['SVLEN'],
record.samples[sample]['GT'][0],
record.samples[sample]['GT'][1],
record.samples[sample]['GQ'],
record.samples[sample].get('GT', ['N/A', 'N/A'])[0],
record.samples[sample].get('GT', ['N/A', 'N/A'])[1],
record.samples[sample].get('GQ', 'N/A'),
vapor_support_gt,
vapor_support_gq,
vapor_support_reads,
Expand Down
Loading