Repository navigation
Whole-chromosome variants are skipped as 'Always Too Long', so ploidy imports no longer warn VEP couldn't annotate them (#2940) - #2942
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Written by Claude
For #2940.
VEPSkippedReasongetsALWAYS_TOO_LONGfor variants that are never given to VEP. Today that means whole-chromosome calls (<DUP:CHROM>/<DEL:CHROM>/<CNV:CHROM>).TOO_LONGstays for SVs overANNOTATION_VEP_SV_MAX_SIZE, whose size depends on the call, so they're still worth a warning.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).VCF_STATS_SQL) leavesALWAYS_TOO_LONGout, 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.annotation/0022: changes the choices (no schema change) and moves existing whole-chromosome rows fromTOO_LONGtoALWAYS_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_vepfails on master. The whole-chromosome tests intest_vep_too_longnow expect the new reason. The whole suite passes (4827).