Repository navigation
GRCh38.p14 contigs and cdot 0.2.38, for cdot data 0.2.37's alt alignments - #2944
Merged
Merged
Conversation
…RCh38.p14 introduced, as RefSeq GRCh38 annotation is on p14 and cdot data 0.2.37 aligns transcripts to them (1,121 transcripts have one as their only contig). TranscriptVersion.get_contigs reads alt_alignments, falling back to other_chroms, and the "maps to multiple chromosomes" warnings and gene-symbol g.HGVS search count chromosomes only, not alt loci and patches #2937
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.
For #2937: getting VariantGrid ready for cdot data 0.2.37, which adds
alt_alignments(a transcript's chrY PAR copy, alt lociNT_and patchesNW_).Changes
GRCh38.p14 contigs (
snpdb/migrations/0023_grch38_p14_contigs.py). RefSeq GRCh38 annotation is on p14, but VariantGrid builds GRCh38 from the p13 assembly report. The migration adds the 71 patches p14 introduced, after the existing contigs, and keeps the gene-level contig last.snpdb/genome/reference_contigs.py:add_patch_release_contigsadds the contigs a later patch release has that the build doesn't. Builds are still created from p13, and every database then gets the p14 patches from the migration, so fresh and existing installs end up the same. Left out on purpose:na): contigs are unique by that accession.The genome FASTA doesn't have these contigs. That's harmless: biocommons only maps transcripts to chromosomes, and
SingleBuildFastaSeqFetcheralready raisesContigNotInBuildErrorfor a missing contig.TranscriptVersion.get_contigs()reads thealt_alignmentskeys, falling back toother_chromsfor older data. The newget_chromosome_contigs()keeps only assembled molecules.get_chromosomes()uses it, which drives the "maps to multiple chromosomes" warnings on the gene and transcript pages. So does the gene-symbolg.search invariantopedia/signals/hgvs_search.py. Otherwise nearly every gene with an alt-locus copy would warn, and a search like "BRCA1 g.…" would also tryNT_contigs.cdot 0.2.38. Its data providers use
alt_alignments.DjangoTranscriptDataProviderdoesn't override any method 0.2.38 changed. cdot is exempt from the uv cooldown.Checked against real data
I built a cdot 0.2.37-format RefSeq GRCh38 file from the RS_2025_08 GFF with cdot master: 186,222 transcripts, 7,829 of them on alt loci or patches only.
KeyErrorinimport_gene_annotation, and 1,253 unknownalt_alignmentscontigs, which raise aKeyErroringet_contigs.Tests
The full suite passes, except 5 tests that need a T2T FASTA, which this box doesn't have. They fail on master too.
ImportCdotAltAlignmentsTestimports a PAR transcript with an alt-locus alignment and a transcript only on a p14 patch.🤖 Generated with Claude Code