Term obsoletion

From geneontology/go-ontology · View interactive version

Term obsoletion is an AI agent skill from the GitHub repository geneontology/go-ontology. For handling the process around obsoleting GO terms. This is a complex process involving substantial analysis of impact, both on existing terms that reference to the to-be-obsoleted term, and on annotations

How to use this skill

Skill file

About obsoletion

Obsoletions can fall into these categories:

  1. Obsoletion with direct replacement (replaced_by)
  2. Obsoletion with candidate replacements (consider)
  3. Obsoletion with no candidate replacements.

The first category is easiest. If you are asked to do an obsoletion and are given a direct equivalent replacement, and the replacement looks reasonable, you don't need to do a detailed impact assessment. But you do need to do the "rewiring" yourself.

For the other two categories, you need to think hard about impacts. If the course of action is unclear, don't make changes, instead communicate questions in your issue comments.

We never do complete merges now, so there should be no alt_ids or

disappearing obo format stanzas. If a user asks for a merge, they usually mean

obsoletion with direct replacement

Obsolete terms should have no logical axioms, and must have the correct metadata

An obsolete term should have

Here is an exemplar obsoleted term:

[Term]
id: GO:0000170
name: obsolete sphingosine hydroxylase activity
namespace: molecular_function
def: "OBSOLETE. Catalysis of the hydroxylation of sphingolipid long chain bases." [PMID:9556590]
comment: The reason for obsoletion is that this term is equivalent to sphingolipid C4-monooxygenase activity.
synonym: "sphingosine hydroxylase" RELATED [PMID:9556590]
property_value: term_tracker_item "https://github.com/geneontology/go-ontology/issues/29717" xsd:anyURI
is_obsolete: true
replaced_by: GO:0102772

Note that the information that remains is critical provenance about either the history of the term (name, definition, placement via namespace, synonyms with their source attribution), or obsoletion metadata. There are no relationships or logical axioms.

Synonyms on obsolete terms

For GO, synonyms are preserved on obsoleted terms by default. This includes:

Do not strip synonyms when obsoleting a GO term unless the requester explicitly asks for it (e.g. because a synonym is misleading, or because it has been transferred to a replacement term and would now be ambiguous on the obsolete stanza).

Transferring axioms

Usually when a term is obsoleted, any "good" information is typically transferred to other terms. For obsoletions with direct replacement,

this is a straightforward transfer. For more complex cases (e.g. splits or merges, cases where the original term was ambiguous), then judgment should be applied, and in general we want to preserve where things go.

Note that synonym transfer to a replacement term is separate from synonym retention on the obsolete stanza — for GO, do both where appropriate: copy useful synonyms onto the replacement term AND keep them on the obsolete term.

For example consider a poor ontology term that is ambiguous:

[Term]
id: GO:ORIGINAL1
name: leg development
def: "Development of a leg. A leg is an appendage on which an organism walks" [Wikipedia:Leg]
synonym: "limb development" EXACT []
synonym: "appendage development" EXACT []
synonym: "development of limb" EXACT []
is_a: ...

This may be obsoleted with two potential replacements:

[Term]
id: GO:ORIGINAL1
name: obsolete leg development
def: "OBSOLETE. Development of a leg. A leg is an appendage on which an organism walks" [Wikipedia:Leg]
synonym: "limb development" EXACT []
synonym: "appendage development" EXACT []
synonym: "development of limb" EXACT []

[Term]
id: GO:NEW1
name: limb development
def: "Development of a limb. A limb is a tetrapod appendange evolved from a fin." [PMID:<...>]
synonym: "appendage development" RELATED []
synonym: "development of limb" EXACT []
is_a: ...

[Term]
id: GO:NEW1
name: insect leg development
def: "Development of an insect limb." [PMID:<...>]
is_a: ...

Note the obsoleted term retains its synonyms (per GO convention) — even though some have also been transferred to replacement terms or have become the primary label ("limb development") on a replacement. Keeping them on the obsolete stanza preserves the search aid: a curator looking up "limb development" against the historical ID still lands on the obsolete term and can follow replaced_by / consider. The provenance for the original (poor) definition also remains, as a matter of history.

Ensure no existing terms reference the term to be obsoleted

If you are obsoleting GO:1234567, you can find usages:

obo-grep.pl GO:1234567 src/ontology/go-edit.obo

You must remove these usages. Do not just delete edges without thinking. You must think hard about replacement terms.

If you deem the impact of obsoletion to be too high or you need feedback on how to handle cascading effects, you should stop short of obsoleting the term, and instead provide an impact analysis and open questions in your gh issue summary.

Check open tickets

go-edit.obo shows only the current state. Before settling replaced_by: / consider: or annotation targets, search open go-ontology issues and PRs for the terms being obsoleted and their proposed replacements. Ignore your own ticket and its PR. If a replacement has an open obsoletion request or pending change, report it on the ticket and do not use it until that is resolved.

Taxon constraints and obsoletion

When obsoleting a term, you may need to remove taxon constraints, as these should never reference obsolete terms. Use the /taxon-constraint skill.

Analyzing impact of obsoletion on other ontologies

Many of the core biological ontologies that use GO are in Ubergraph:

runoak -i ubergraph: usages GO:1234567

For example, if we use this with GO:0051321 (meiotic cell cycle), we see something like:

used_id	used_by_id	predicate	source	dataset	context	axiom	description
GO:0051321	GO:0019953	BFO:0000050	UbergraphImplementation	None	UsageContext.RELATIONSHIP_SUBJECT	None	None
GO:0051321	NCBITaxon:2759	RO:0002162	UbergraphImplementation	None	UsageContext.RELATIONSHIP_SUBJECT	None	None
GO:0051321	FYPO:0000052	UPHENO:0000001	UbergraphImplementation	None	UsageContext.RELATIONSHIP_OBJECT	None	None
GO:0051321	CL:0000657	RO:0002216	UbergraphImplementation	None	UsageContext.RELATIONSHIP_OBJECT	None	None
GO:0051321	Wikipedia:Meiosis	oio:hasDbXref	UbergraphImplementation	None	UsageContext.MAPPING_SUBJECT	None	None
...

The first row is a GO-internal axiom (a part_of relationship between two GO terms). The second row arises from GO axioms we add for taxon constraints: it is still a GO-internal axiom, but it references an external identifier from NCBITaxon rather than indicating that NCBITaxon depends on GO. The FYPO and CL rows are important because they show that these two ontologies

have axioms that directly reference GO terms; for these kinds of external ontologies, sufficient warning should be given to the ontology maintainers when making impactful changes. The final row shows a GO dbxref mapping to an external resource (Wikipedia) that is maintained within GO and does not, by itself, imply an external ontology that needs to be notified.

Analyzing impact of obsoletion on GO annotations

For all obsoletions, analyze the impact on gene annotations. You will want to maintain a specific TODO list here, and report back your analysis when you report back on the issue

Step 1: Find All Annotations to the obsoleted term

Use OAK (Ontology Access Kit) to find all direct usages of the term in gene product annotations:

runoak -i amigo: associations GO:nnnnnnn

Important notes:

Parse the results to identify:

Update the todo list with one item per unique PMID for detailed analysis.

Step 2: Analyze Each Publication (One PMID at a Time)

Use the /research skill to explore publications. This should give you a clue for potential replacement terms.

2a. Analyze Annotation Validity

For each annotation from this PMID, determine:

Question 1: Is the annotation still valid?

Question 2: What action should be taken?

Option A: Replace with specific term

Option B: Remove annotation

Option C: Migrate to parent/broader term

2b. Document Findings

For each PMID analyzed, provide:

  1. PMID and paper title
  2. Number of annotations from this paper
  3. Relevant experimental context (quote key sentences from the paper)
  4. Recommendation (replace/remove/migrate)
  5. Proposed term (if recommending replacement)
  6. Justification (why this action is appropriate)

Example format:

"<Title of the paper>"
SUPPORT: <PMID:localId> "<Exact excerpt from the paper>
- finding 1
- finding 2
- ...

Recommendations:

* Replace <GO:nnnnnnn> with <GO:nnnnnn> "<term label>" ## Justification
2c. Flag Over-Annotation

Watch for cases where:

Mark the corresponding todo as completed after analyzing each PMID.

Step 3: Repoort back findings

After analyzing all PMIDs (or after analyzing significant subsets), update the GitHub issue:

Include a detailed analysis in the issue comments.

Include in updates:

Statistics:

Action items for curators:

Use the obsoletion announcement for the obsolete term's comment

By the time a term is actually obsoleted, the proposal has normally already

been announced as an issue in https://github.com/geneontology/go-announcements

(label obsoletion, title Obsoletion notice: GO:nnnnnnn <term label>), and

that notice links back to the original go-ontology ticket. The obsolete

stanza's comment: must use the reason given in that announcement, so that

what users were told and what the ontology says are the same.

Step 1: Find the announcement

Search by GO ID, then by ticket number if nothing turns up:

gh issue list -R geneontology/go-announcements --label obsoletion --state all \
  --search "GO:nnnnnnn" --json number,title,url
gh issue list -R geneontology/go-announcements --label obsoletion --state all \
  --search "go-ontology/issues/NNNNN" --json number,title,url
gh issue view MMMM -R geneontology/go-announcements   # read the notice

If several notices match (for example, one covering a batch of terms), use the

one whose body links the go-ontology ticket you are working on. Also check the

original ticket's comments: editors often paste the notice text there too.

Step 2: Take the comment and replacements from the notice

comment: The reason for obsoletion is that <reason as announced>.

Fix only an obvious typo, and say so in your summary.

notice and the ticket discussion disagree (e.g. the replacement changed after

the notice went out), stop and ask rather than choosing.

ticket/notice shows unresolved objections, flag this before obsoleting.

Example — go-announcements#1198 for go-ontology#32640 says "The reason for

obsoletion is that there is no evidence that this process exists" and

"Annotations can be transferred to GO:7770063 beta barrel protein insertion

into mitochondrial outer membrane", giving:

comment: The reason for obsoletion is that there is no evidence that this process exists.
consider: GO:7770063

Step 3: Record the link

In the ticket comment and the PR description, cite the announcement issue

(e.g. Obsoletion announced in geneontology/go-announcements#1198).

If no announcement exists

Say so on the ticket/to the user and do not file one unprompted: announcing is

the ontology editors' call. If asked to draft one, use the official template

(https://github.com/geneontology/go-announcements/blob/master/.github/ISSUE_TEMPLATE/obsoletion-notice.md),

keep only the reason line(s) that apply, and show the draft for approval

before anything is posted. The stanza comment: then uses the same reason

sentence as the draft.

Best Practices

Reading Publications Efficiently

Maintaining Context

Handling Ambiguity

If uncertain about the correct replacement term:

  1. Check the term hierarchy and definitions using obo-grep.pl
  2. Look for similar annotations in the paper
  3. Note the uncertainty in your update and ask for curator guidance
  4. Don't guess - it's better to flag for manual review

Managing Large Annotation Sets

For terms with 50+ annotations:

Tool Reference

Find annotations:

runoak -i amigo: associations GO:nnnnnnn

Fetch publication full text:

Use WebTools

Search ontology for terms:

obo-grep.pl -r 'id: GO:nnnnnnn' src/ontology/go-edit.obo

Update GitHub issue:

gh issue comment ISSUE_NUMBER --body "Your comment here"
gh issue view ISSUE_NUMBER  # To read the issue

Common Patterns

Pattern 1: Direct Replacement

Obsolete term has exact replacement - verify all annotations can migrate cleanly.

Pattern 2: Split Terms

Obsolete term was too broad, split into multiple specific terms - each annotation needs individual assessment.

Pattern 3: Erroneous Term

Term was incorrectly defined - annotations may need removal or migration to very different terms.

Pattern 4: Out of Scope

Term removed from GO scope - determine if annotations should move to related ontology or be removed.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.