Repository navigation
Support T2T-CHM13v2.0 and pinned rapid-release assemblies natively (#541) - #544
Merged
Merged
Conversation
) - Add bundled pinned assembly catalog (T2T-CHM13v2.0 / GCA_009914755.4 / hs1, Ensembl rapid-release 2022_07) with SHA-256 + byte-size asset pins, UCSC/ GenBank/RefSeq contig alias tables, explicit rejection of coordinate- incompatible draft/older versions (e.g. T2T-CHM13v1.0), and packaged rCRS (NC_012920.1) mitochondrial annotation distinct from CHM13's native MT (CP068254.1). - Add PinnedGenome and lazy top-level helper exports in pyensembl/pinned_genomes.py. - Wire pinned assemblies into normalize_reference_name, find_species_by_reference, genome_for_reference_name, available_releases, and the pyensembl CLI (install, list, inspect, verify, available, delete-*). - Bump version to 2.36.0 and update RELEASE_NOTES.md.
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.
Summary
Implements native support for
T2T-CHM13v2.0(GCA_009914755.4/hs1, Ensembl rapid-release2022_07) and checksum-pinned rapid-release assemblies directly inpyensembl(v2.36.0).Closes #541.
Changes
pyensembl/pinned_assemblies.json+ packaged Ensembl GRCh38 rCRSNC_012920.1mitochondrion files inpyensembl/data/):2022_07GTF/cDNA/protein URLs by exact SHA-256 and byte size.T2T-CHM13v2.0,hs1,GCA_009914755.4,GCF_009914755.1,chm13v2.0*,T2T-CHM13v1.1,t2t-chm13), UCSC/GenBank/RefSeq contig alias tables, explicit rejection of coordinate-incompatible older/draft versions (T2T-CHM13v1.0,GCA_009914755.2, etc.), andCP068254.1vsNC_012920.1(_rCRS) mitochondrion disambiguation.pyensembl/pinned_genomes.py, exported via PEP 562 frompyensembl):PinnedGenome,PinnedAssembly,ReferenceAlias,ContigAlias,RCRS_ACCESSION,pinned_assemblies(),pinned_reference_aliases(),resolve_pinned_assembly(),find_pinned_reference_name(),is_rcrs_reference(),contig_aliases(),normalize_pinned_contig(),pinned_contig_spellings(),pinned_contig_lengths(),mitochondrion_note().PinnedGenome.download()verifies SHA-256 + byte size before caching and merges the packagedNC_012920.1rCRS mitochondrion annotation while keeping CHM13's native unannotatedMT(CP068254.1) separate.PinnedGenome.verify_sources()verifies all pinned assets and the merged GTF offline.normalize_reference_name(),find_species_by_reference(),genome_for_reference_name(),available_releases(), andpyensembl install/list/inspect/verify/available/delete-*all support pinned assemblies.2.35.0->2.36.0withRELEASE_NOTES.md.Verification
./lint.sh: ruff + mypy passed../test.sh: 1186 passed (94% coverage), includingtests/test_pinned_assemblies.py.python -m build --sdist --wheel && twine check: zero warnings, all data assets included.