java.lang.Object
com.compomics.util.experiment.biology.taxonomy.mappings.EnsemblSpecies

public class EnsemblSpecies extends Object
Mapping of the Ensembl species.
Author:
Marc Vaudel, Harald Barsnes
  • Field Details

  • Constructor Details

    • EnsemblSpecies

      public EnsemblSpecies()
      Constructor.
  • Method Details

    • loadMapping

      public void loadMapping(File speciesFile) throws IOException
      Loads the species mapping from a file. Previous mapping will be overwritten.
      Parameters:
      speciesFile - the species file
      Throws:
      IOException - exception thrown whenever an error occurred while reading the file.
    • getCommonName

      public String getCommonName(String latinName)
      Returns the common name corresponding to the given Latin name.
      Parameters:
      latinName - the Latin name, e.g. 'homo_sapiens'.
      Returns:
      the common name
    • getDivision

      public EnsemblSpecies.EnsemblDivision getDivision(String latinName)
      Returns the division corresponding to the given Latin name.
      Parameters:
      latinName - the Latin name, e.g. 'homo_sapiens'.
      Returns:
      the Ensembl division
    • getAssembly

      public String getAssembly(String latinName)
      Returns the Ensembl assembly corresponding to the given Latin name.
      Parameters:
      latinName - the Latin name, e.g. 'homo_sapiens'.
      Returns:
      the Ensembl assembly
    • getTaxon

      public String getTaxon(String latinName)
      Returns the NCBI taxon corresponding to the given Latin name.
      Parameters:
      latinName - the Latin name, e.g. 'homo_sapiens'.
      Returns:
      the NCBI taxon
    • getLatinNames

      public HashSet<String> getLatinNames()
      Returns the Latin names in this map.
      Returns:
      the Latin names in this map