Repository navigation
Publish T2T-CHM13v2.0's names, contig aliases and mitochondria (0.51.0) - #205
Merged
Merged
Conversation
reference_names() lists every name the pinned genomes answer to, the genome each opens and its file's mitochondrion: hs1, GCA/GCF accessions, the T2T analysis sets (the _rCRS set's chrM is NC_012920.1, not CHM13's own CP068254.1) and T2T-CHM13v1.1. T2T-CHM13v1.0 and the v0.7/v0.9 drafts are listed with no genome and say why. contig_aliases(name) gives the 25 sequences under their annotation, UCSC, GenBank and RefSeq names with NCBI's lengths, leaving out what that name's files lack or carry as another molecule. load_genome/install_genome accept any listed name; the catalogue hint no longer reads bare chm13 as v2.0. New CLI: orfdata genomes names, orfdata genomes contigs NAME. Closes #204. Claude-Session: https://claude.ai/code/session_01JHJhwfx4um52Nczrv3G814
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.
Closes #204. Bumps to 0.51.0.
varcode will infer T2T-CHM13v2.0 from file names and VCF headers (openvax/varcode#723). For that it needs one list of names, contig aliases and mitochondria that both packages share. Until now ORFdata had only a private, hint-only alias dict, and
load_genomeaccepted only"t2t-chm13".Change
The table lives beside the pin in
orfdata/data/genomes.json, so a second pinned assembly is a registry entry rather than new code.orfdata.reference_names()(orfdata genomes names) returns a DataFrame with columnsname,genome,mitochondrionandnote:t2t-chm13,T2T-CHM13v2.0,GCA_009914755.4,hs1,chm13v2.0,chm13v2.0_maskedY,chm13v2.0_noYt2t-chm13CP068254.1(CHM13's own)chm13v2.0_maskedY_rCRS,chm13v2.0_maskedY.rCRSt2t-chm13NC_012920.1(the rCRS)GCF_009914755.1t2t-chm13T2T-CHM13v1.1,GCA_009914755.3,chm13.draft_v1.1t2t-chm13CP068254.1T2T-CHM13v1.0,GCA_009914755.2,chm13.draft_v1.0,chm13.draft_v0.9,T2T-CHM13v0.7,GCA_009914755.1,chm13.draft_v0.7orfdata.contig_aliases(name)(orfdata genomes contigs NAME) lists the 25 sequences from NCBI's assembly report. Each row has the annotation's name (1), the UCSC name (chr1), the GenBank and RefSeq accessions, and the length. It leaves out sequences that the named files lack, or carry as a different molecule:Yfor_noYand v1.1;MTfor the_rCRSset, whosechrMis the rCRS;MTforGCF_009914755.1.load_genome,install_genomeandorfdata genomes installaccept any listed name, ignoring case.NotInstalledErrornamesorfdata genomes install t2t-chm13whichever name was given: "The t2t-chm13 annotation (for hs1) is not installed; …".catalog._assembly_hinttakes T2T names from the table, so barechm13(which names every version) no longer resolves. A v1.0 name explains why it doesn't resolve.Finding names inside paths stays with the caller; the table holds exact names only.
Sources
Checked 2026-11-09:
hs1.chromAlias.txt, which agrees with NCBI's report on every row._noYis "identical to T2T-CHM13v1.1", and_maskedY_rCRSreplaces the mitochondrion with NC_012920.1.The two reports and the chromAlias file are in
tests/data/t2t/, so the contig table and the v1.0 claim are tested offline against their sources. The report's SHA-256 is pinned beside the table.Not changed
t2t-chm13installations are reused.Tests
tests/test_genomes.pycovers:_pinned,contig_aliasesandload_genome, and barechm13doesn't resolve;tests/test_cli_audit.pyrunsgenomes namesandgenomes contigswith human and JSON output.Verification
./lint.sh: passes.pytest tests -n 8: 1527 passed, 6 skipped.mkdocs build --strict: passes.https://claude.ai/code/session_01JHJhwfx4um52Nczrv3G814