Class GeneOntologyUtils
- java.lang.Object
-
- ubic.gemma.core.ontology.providers.GeneOntologyUtils
-
public class GeneOntologyUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description GeneOntologyUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringasRegularGoId(String uri)Convert various GO IDs formats to the usual format, e.g., GO:0039392.static StringasRegularGoId(OntologyTerm term)Convert various GO IDs formats to the usual format, e.g., GO:0039392.static StringasRegularGoId(Characteristic c)Convert a characteristic to a regular GO ID.static booleanisGoId(String s)Check if a given string is a GO ID.
-
-
-
Method Detail
-
isGoId
public static boolean isGoId(String s)
Check if a given string is a GO ID.
-
asRegularGoId
@Nullable public static String asRegularGoId(OntologyTerm term)
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
@Nullable public static String asRegularGoId(Characteristic c)
Convert a characteristic to a regular GO ID.
-
-