---
layout: rule
id: GORULE:0000020
title: "Automatic repair of annotations to merged or obsoleted terms"
contact: "ramab@stanford.edu"
status: Approved
fail_mode: soft
---
Ontology operations such as term merges and obsoletions may be out of
sync with annotation releases. Each GO entry T in the GAF is checked to
see if it corresponds to a valid (non-obsolete) term in the ontology. If
not, metadata for other terms is checked. If the term has been merged
into a term S (i.e. S has alt\_id of T) then T is replaced by S in the
GAF line.

---
layout: rule
id: GORULE:0000020
title: "Automatic repair of annotations to merged or obsoleted terms"
contact: "ramab@stanford.edu"
status: Implemented
fail_mode: soft
implementations: https://github.com/biolink/ontobio/blob/master/ontobio/io/assocparser.py#L470:L492
---
Ontology operations such as term merges and obsoletions may be out of
sync with annotation releases. Each GO entry T in the GAF is checked to
see if it corresponds to a valid (non-obsolete) term in the ontology. If
not, metadata for other terms is checked. If the term has been merged
into a term S (i.e. S has alt\_id of T) then T is replaced by S in the
GAF line.

Change status to implemented, as we do this in ontobio and added link to ontobio code in implementations field
Change status to implemented, as we do this in ontobio and added link to ontobio code in implementations field