Class GeneOntologyUtils
java.lang.Object
ubic.gemma.core.ontology.providers.GeneOntologyUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
asRegularGoId
(String uri) Convert various GO IDs formats to the usual format, e.g., GO:0039392.static String
asRegularGoId
(OntologyTerm term) Convert various GO IDs formats to the usual format, e.g., GO:0039392.static String
Convert a characteristic to a regular GO ID.static boolean
Check if a given string is a GO ID.
-
Constructor Details
-
GeneOntologyUtils
public GeneOntologyUtils()
-
-
Method Details
-
isGoId
Check if a given string is a GO ID. -
asRegularGoId
Convert various GO IDs formats to the usual format, e.g., GO:0039392.- Parameters:
term
- ontology term- Returns:
- Usual formatted GO id, e.g., GO:0039392 or null for a free-text term
-
asRegularGoId
Convert a characteristic to a regular GO ID. -
asRegularGoId
Convert various GO IDs formats to the usual format, e.g., GO:0039392.- Returns:
- a regular GO ID or null if the input is null or not a reckognized GO ID format
-