Repository navigation
GO Investigation
These are two separate questions, so this page tests them separately.
- Issue #22. Why do GOALL files contain the same GO ID twice, with different genes?
- Decline. Are we losing GO gene sets over time, and is that GO or the pipeline?
Figures and tables are in pipeline/results/aim2/.
The test holds everything fixed except the ontology file:
- the same GAF (EBI GOA, generated 2026-11-04, SHA-256
ae23c8d7…); - the same parser (
GenesetTools.jar createGo, built fromaed093a, in the Docker image); - the same settings (BP/MF/CC, with and without
--exclude); - only
go.obovsgo-basic.obo, both from GO release 2026-07-26.
Command and outputs: issue22_report.py, results/aim2/issue22_2026-11-30/.
| go.obo, no IEA | go-basic.obo, no IEA | go.obo, with IEA | go-basic.obo, with IEA | |
|---|---|---|---|---|
| GOALL lines | 21,182 | 19,871 | 22,224 | 20,901 |
| unique GO IDs | 19,908 | 19,871 | 20,905 | 20,901 |
| duplicate GO IDs | 1,274 | 0 | 1,319 | 0 |
| duplicates whose copies have different genes | 1,202 | 0 | 1,169 | 0 |
| BP terms written into the MF file | 1,311 | 0 | 1,323 | 0 |
Membership of everything else is unchanged. Every term built with both ontologies in the same branch file has identical genes: all 12,877 BP, 4,998 MF and 1,996 CC sets (no IEA), and all 13,626 / 5,177 / 2,098 (with IEA) (issue22_membership.tsv).
What changes if the build switches to go-basic.obo:
- The MF file stops carrying BP terms, which removes all 1,274 / 1,319 duplicates.
-
37 BP terms (no IEA) and 4 (with IEA) leave GOALL completely. They appeared only in the MF file, because their only genes came from MF annotations through a cross-branch
part_oflink. Most have 1–4 genes. Decide whether that is acceptable before changing the legacy script. They are listed interms_lost_with_go_basic.tsv(e.g. GO:0009106 lipoate metabolic process, 1 gene). - The legacy script is not changed yet. The change is a one-line URL edit in
download_GOhuman_data(and the mouse/rat equivalents).
Why it started in Oct 2021. Commit f13239b (2021-05-28) switched the build from gene_ontology.1_2.obo to go.obo. The duplicates first appear in the first published release after the archive gap. gene_ontology.1_2.obo itself is not archived, so this timing rests on the code history plus the test above, not on a rebuild with the original file.

Lines: Python port of the legacy code on 17 archived GO releases (same GAF and parser per release, only the ontology differs). Stars: the 30 Nov 2026 live inputs through the real Java tool.
A second input problem found during the run: the GAF and the ontology come from different GO releases
The build downloads go.obo from current.geneontology.org. On 30 Nov 2026 that file was GO release 2026-07-26. The EBI GAF downloaded the same minute was built against GO 2026-10-23. As a result:
- 9 GO IDs used in the GAF (60 annotation lines) do not exist in the ontology the build used (
gaf_obo_mismatch.tsv); - the build still writes them, as 9 gene sets named "GO ID not found in OBO file ontology definitions" (3 BP, 5 MF, 1 CC).
Not decided yet: whether to download the ontology the GAF names in its !go-version header.
The decline test uses one parser and one counting rule for every release:
- 17 archived GO releases (release.geneontology.org, 2021-01-01 to 2026-08-05);
- the Python port of the legacy GO code, which is identical to the Java tool on today's inputs (see Build Walkthrough);
- unique GO IDs in GOALL (BP+MF+CC) as the count.
It is compared with "GO itself", meaning each branch's own non-obsolete terms that have at least one gene. Counts are in go_funnel_counts.tsv, and the figure is drawn by aim2_figures.py.

| 2021-01-01 → 2026-08-05 | No IEA | With IEA |
|---|---|---|
| GO itself (reference) | 20,383 → 20,148 (−1.2%) | 22,362 → 21,102 (−5.6%) |
| legacy rule, unique IDs | 20,428 → 20,184 (−1.2%) | 22,365 → 21,103 (−5.6%) |
| legacy rule, GOALL lines | −2.9% | −7.2% |
Result: the decline is still there with a consistent parser, and the pipeline tracks GO's own count.
- No IEA: −1.2% and not steady. It rises to 20,577 in mid-2022, falls to 19,970 in March 2026, then recovers to 20,148.
- With IEA: −5.6%, mostly in one step between the 2025-07-22 and 2026-01-23 releases (21,931 → 21,102 for the legacy rule). In the same interval GO obsoleted 1,253 terms (8,259 → 9,512 obsolete), live BP terms fell by 1,152, and BP terms with direct annotations fell by about 1,000. This is a change in the ontology input, not a build rule.
- Line counts fall faster only because they include the duplicates (section 1).
The NOT-filter fix (commit 59afacb, 2024-09-13) changes counts by about 40 sets (legacyKeepNOT vs legacy: 20,466 vs 20,428 in Jan 2021, 20,225 vs 20,184 in Aug 2026, no IEA).
What is still unverified:
- Whether the published Bader Lab files follow the same curve. That needs
release_history, which may only run 9 pm–8 am Toronto time; it is scheduled to run tonight on the development VM. - Whether the archived GO Consortium GAFs exactly match the EBI files the build downloaded at the time.