Skip to content

Whole-chromosome variants are skipped as 'Always Too Long', so ploidy imports no longer warn VEP couldn't annotate them (#2940) - #2942

Merged
davmlaw merged 1 commit into
masterfrom
2940_always_too_long_for_vep
Nov 30, 2026
Merged

davmlaw merged 1 commit into
masterfrom
2940_always_too_long_for_vep

Conversation

@davmlaw

@davmlaw davmlaw commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

🤖 Written by Claude

For #2940.

VEPSkippedReason gets ALWAYS_TOO_LONG for variants that are never given to VEP. Today that means whole-chromosome calls (<DUP:CHROM>/<DEL:CHROM>/<CNV:CHROM>). TOO_LONG stays for SVs over ANNOTATION_VEP_SV_MAX_SIZE, whose size depends on the call, so they're still worth a warning.

  • Import: the VEP-skipped rows written for a structural-variant run choose the reason per variant (annotation/vcf_files/import_vcf_annotations.py:_too_long_reason). Both reasons get gene overlaps resolved locally and the whole-chromosome variant class (VEP_TOO_LONG_REASONS).
  • Warning: the VCF stats count (VCF_STATS_SQL) leaves ALWAYS_TOO_LONG out, so the import's "VEP was unable to annotate N variants" no longer fires for a ploidy VCF. The skipped-annotation grid it links to leaves them out too.
  • Variant page: unchanged. The whole-chromosome warning and the "Not annotated by VEP" text read either reason.
  • Migration annotation/0022: changes the choices (no schema change) and moves existing whole-chromosome rows from TOO_LONG to ALWAYS_TOO_LONG. There are only a handful of whole-chromosome variants (one per chromosome and direction), so it touches few rows. Warnings already written for past imports stay as they are.

Tests: annotation.tests.test_cohort_stats_counts.CohortStatsCountsTest.test_vcf_stats_leave_out_variants_never_given_to_vep fails on master. The whole-chromosome tests in test_vep_too_long now expect the new reason. The whole suite passes (4827).

…TOO_LONG rather than TOO_LONG, so a ploidy VCF import no longer warns that VEP was unable to annotate them and the skipped-annotation grid leaves them out. An SV over the size cap stays TOO_LONG and is still warned about; a migration moves existing whole-chromosome rows #2940
@davmlaw
davmlaw merged commit 26d7107 into master Nov 30, 2026
4 checks passed
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.

1 participant