Skip to content

Fix TypeError in record_direct_coverage and variant_counts when is_coding_nonsynonymous is None (v3.65.1) - #906

Merged
iskandr merged 1 commit into
mainfrom
fix/direct-coverage-none-coding
Nov 22, 2026
Merged

iskandr merged 1 commit into
mainfrom
fix/direct-coverage-none-coding

Conversation

@iskandr

@iskandr iskandr commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Closes #905

Summary

  • Fixes a TypeError: unsupported operand type(s) for +: 'int' and 'NoneType' crash observed on real HCC1395 VCF+BAM runs when an unannotatable variant has isovar_result.predicted_effect_modifies_protein_sequence is None.
  • Coerces count terms with bool(...) in vaxrank/input_coverage.py:record_direct_coverage() and vaxrank/vaxrank_results.py:VaxrankResults.variant_counts() while keeping None intact in per-variant outcome rows.
  • Fixes a missing trailing newline between source-group rows in vaxrank/templates/source_outcomes.txt.
  • Adds regression test test_direct_coverage_and_variant_counts_handle_none_coding_effect and bumps version to 3.65.1.

@iskandr
iskandr merged commit 03096ab into main Nov 22, 2026
11 checks passed
@iskandr
iskandr deleted the fix/direct-coverage-none-coding branch November 22, 2026 14:36
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

Successfully merging this pull request may close these issues.

record_direct_coverage and VaxrankResults.variant_counts crash with TypeError when is_coding_nonsynonymous is None

1 participant