Add special rule for RO terms which sometimes include alpha chars
Fixes
@@ -122,6 +122,17 @@ entries:
- from: /PR_A0A0E0NEP8-37
to: https://proconsortium.org/cgi-bin/entry_pro?id=PR_A0A0E0NEP8-37
+# Term redirects for RO
+# Some RO terms have a local ID starting with an alphanumeric character, e.g RO_HOMnnnnn
+- regex: ^/obo/RO_([A-Z]*\d+)$
+ replacement: https://www.ebi.ac.uk/ols/ontologies/ro/properties?iri=http://purl.obolibrary.org/obo/RO_$1
+ status: see other
+ tests:
+ - from: /RO_0002202
+ to: https://www.ebi.ac.uk/ols/ontologies/ro/properties?iri=http://purl.obolibrary.org/obo/RO_0002202
+ - from: /RO_HOM0000001
+ to: https://www.ebi.ac.uk/ols/ontologies/ro/properties?iri=http://purl.obolibrary.org/obo/RO_HOM0000001
+
# Term redirects for GNO
# Match digits or GlyTouCan ID
- regex: ^/obo/GNO_(\d+|G[0-9]{5}[A-Z]{2})$
