Class EnsemblSpecies
java.lang.Object
com.compomics.util.experiment.biology.taxonomy.mappings.EnsemblSpecies
Mapping of the Ensembl species.
- Author:
- Marc Vaudel, Harald Barsnes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum of the different Ensembl divisions. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAssembly(String latinName) Returns the Ensembl assembly corresponding to the given Latin name.getCommonName(String latinName) Returns the common name corresponding to the given Latin name.getDivision(String latinName) Returns the division corresponding to the given Latin name.Returns the Latin names in this map.Returns the NCBI taxon corresponding to the given Latin name.voidloadMapping(File speciesFile) Loads the species mapping from a file.
-
Field Details
-
SEPARATOR
The separator used to separate line contents.- See Also:
-
-
Constructor Details
-
EnsemblSpecies
public EnsemblSpecies()Constructor.
-
-
Method Details
-
loadMapping
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
Returns the common name corresponding to the given Latin name.- Parameters:
latinName- the Latin name, e.g. 'homo_sapiens'.- Returns:
- the common name
-
getDivision
Returns the division corresponding to the given Latin name.- Parameters:
latinName- the Latin name, e.g. 'homo_sapiens'.- Returns:
- the Ensembl division
-
getAssembly
Returns the Ensembl assembly corresponding to the given Latin name.- Parameters:
latinName- the Latin name, e.g. 'homo_sapiens'.- Returns:
- the Ensembl assembly
-
getTaxon
Returns the NCBI taxon corresponding to the given Latin name.- Parameters:
latinName- the Latin name, e.g. 'homo_sapiens'.- Returns:
- the NCBI taxon
-
getLatinNames
Returns the Latin names in this map.- Returns:
- the Latin names in this map
-