Class GeneOntologyUtils

java.lang.Object
ubic.gemma.core.ontology.providers.GeneOntologyUtils

public class GeneOntologyUtils extends Object
  • Constructor Details

    • GeneOntologyUtils

      public GeneOntologyUtils()
  • Method Details

    • 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.
    • asRegularGoId

      @Nullable public static String asRegularGoId(String uri)
      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