Repository navigation
Migrate GO annotation download URLs to new /annotations/gaf/ layout - #13
Merged
Merged
Conversation
The GO project reorganized its annotation distribution (geneontology/go-announcements#1153): the /annotations directory is split into /gaf, /gpad, /gpi subdirectories and files are renamed with UniProt mnemonic organism codes. Old URLs expire after September 2026. Rewrite all 13 GAF download URLs to the new /annotations/gaf/<MNEMONIC>-<variant> scheme. MOD-submitted species (mouse, rat, zebrafish, fly, worm, yeast, pombe, dicty) use the `-mod` (MOD ID-centric) variant to preserve MOD-namespace gene identifiers; UniProt-mediated species (human, dog, cow, pig, chicken) use `-uniprot`. Update GAF_INFORES basename keys and test fixtures to match. Closes #12
kevinschaper
added a commit
that referenced
this pull request
Jul 8, 2026
* Fix MOD-species edge loss: match NCBITaxon: taxon prefix The June 2026 GO pipeline migration (geneontology/go-announcements#1153, migrated in #13) reorganized annotation distribution and, on the `-mod` GAF files, changed the Taxon column prefix on MOD-native rows from the legacy lowercase `taxon:` to `NCBITaxon:`. The go_annotation reader's Taxon `in` filter is an exact string match and only enumerated `taxon:<id>` values, so every MOD-native row in the `-mod` files was excluded. The eight MOD-sourced species collapsed to near-zero (only residual ComplexPortal rows, which still use `taxon:`, survived; and PomBase/dictyBase, which have no such rows, dropped to exactly zero). The five `-uniprot` species were unaffected because those files still use `taxon:`. Net effect in the 2026-07-01 release: 3.80M -> 2.02M edges (-47%). Per-species drop (2026-06-01 -> 2026-07-01): mouse 709,827->2,436 rat 571,401->439 zebrafish 196,070->23 fly 170,725->850 yeast 138,996->2,772 worm 103,852->488 pombe 65,983->0 dicty 65,201->0 Enumerate every target taxon under both `taxon:` and `NCBITaxon:` prefixes so single-taxon MOD rows match again while preserving the existing behavior of dropping piped multi-taxon (host/pathogen) annotations. Add a regression test asserting the filter covers both prefixes for all taxa. Verified locally against freshly downloaded YEAST-mod + SCHPO-mod GAFs: 2,772 edges with the old filter vs 218,380 with the fix. Claude-Session: https://claude.ai/code/session_01EEmWQVnmV7nFMca8LfWzYz * Add min_edge_count guard to fail on edge-count collapse Set a whole-graph min_edge_count of 3,000,000 on the go_annotation writer. Healthy full-species builds emit ~3.8M edges; the June 2026 GO format change silently dropped that to ~2.0M and shipped before anyone noticed. This coarse floor sits well above the failure and ~20% below the healthy low, so a catastrophic drop fails the build loudly without tripping on normal fluctuation. Enforcement requires koza with writer count-bound checking (monarch-initiative/koza#238); until that release is picked up the field is a harmless no-op, matching koza's prior behavior. Claude-Session: https://claude.ai/code/session_01EEmWQVnmV7nFMca8LfWzYz * Require koza>=2.6.1 to activate the min_edge_count guard koza 2.6.1 is the first release that enforces writer min/max count bounds (monarch-initiative/koza#238, closing #239); on earlier versions the min_edge_count added to go_annotation.yaml was a silent no-op. Bump the floor and refresh the lockfile so the edge-count-collapse guard actually fails the build. Claude-Session: https://claude.ai/code/session_01EEmWQVnmV7nFMca8LfWzYz * Tighten filter and guard comments; pair taxon prefixes Interleave each taxon id with its two prefixes and trim the comments to what a future reader needs: the Taxon column mixes taxon:/NCBITaxon: prefixes so the list carries both, and min_edge_count is ~20% below current output. Claude-Session: https://claude.ai/code/session_01EEmWQVnmV7nFMca8LfWzYz
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 #12.
What
The GO project reorganized its annotation file distribution (geneontology/go-announcements#1153). The
/annotationsdirectory is split into/gaf,/gpad,/gpisubdirectories and files are renamed using UniProt mnemonic organism codes. Old URLs remain available through July 2026 and redirects expire September 2026, so this ingest must move to the new URLs.This PR rewrites all 13 GAF download URLs to the new
/annotations/gaf/<MNEMONIC>-<variant>.gaf.gzscheme.Variant choice
MOD files are now published in two variants. We use:
-mod(MOD ID-centric) for MOD-submitted species — preserves MOD-namespace gene identifiers, matching current behavior.-uniprotfor the UniProt-mediated species we previously took fromgoa_*files.goa_human.gaf.gzgaf/HUMAN-uniprot.gaf.gzmgi.gaf.gzgaf/MOUSE-mod.gaf.gzrgd.gaf.gzgaf/RAT-mod.gaf.gzgoa_dog.gaf.gzgaf/CANLF-uniprot.gaf.gzgoa_cow.gaf.gzgaf/BOVIN-uniprot.gaf.gzgoa_pig.gaf.gzgaf/PIG-uniprot.gaf.gzgoa_chicken.gaf.gzgaf/CHICK-uniprot.gaf.gzzfin.gaf.gzgaf/DANRE-mod.gaf.gzfb.gaf.gzgaf/DROME-mod.gaf.gzwb.gaf.gzgaf/CAEEL-mod.gaf.gzdictybase.gaf.gzgaf/DICDI-mod.gaf.gzsgd.gaf.gzgaf/YEAST-mod.gaf.gzpombase.gaf.gzgaf/SCHPO-mod.gaf.gzChanges
download.yaml— all 13 GO annotation URLs updated. Locallocal_nametaxid paths are unchanged, sosrc/go_annotation.yamlneeds no changes.src/versions.py—GAF_INFORESkeys updated to the new basenames (infores mappings unchanged).tests/test_versions.py— fixtures and the URL assertion updated to the new scheme.README.md— documented download path updated to/annotations/gaf/.Verification
current.geneontology.org).download.yamlis mapped inGAF_INFORES(the invarianttest_gaf_infores_covers_all_download_yaml_entriesenforces).🤖 Generated with Claude Code
Generated by Claude Code