public class EnsemblGenomesSpecies extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EnsemblGenomesSpecies.EnsemblGenomeDivision
Enum of the different Ensembl genome divisions.
|
Modifier and Type | Field and Description |
---|---|
static String |
SEPARATOR
The separator used to separate line contents.
|
Constructor and Description |
---|
EnsemblGenomesSpecies()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAssembly(Integer taxon)
Returns the Ensembl assembly corresponding to the given NCBI taxon.
|
EnsemblGenomesSpecies.EnsemblGenomeDivision |
getDivision(Integer taxon)
Returns the division corresponding to the given NCBI taxon.
|
String |
getName(Integer taxon)
Returns the name corresponding to the given NCBI taxon.
|
HashSet<Integer> |
getTaxons()
Returns the taxons in this map.
|
void |
loadMapping(File speciesFile)
Loads the species mapping from a file.
|
public static final String SEPARATOR
public void loadMapping(File speciesFile) throws IOException
speciesFile
- the species fileIOException
- exception thrown whenever an error occurred while
reading the file.public String getName(Integer taxon)
taxon
- the NCBI taxonpublic EnsemblGenomesSpecies.EnsemblGenomeDivision getDivision(Integer taxon)
taxon
- the NCBI taxonpublic String getAssembly(Integer taxon)
taxon
- the NCBI taxonCopyright © 2016. All rights reserved.