public class EnsemblSpecies extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SEPARATOR
The separator used to separate line contents.
|
Constructor and Description |
---|
EnsemblSpecies()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAssembly(Integer id)
Returns the Ensembl assembly corresponding to the given NCBI taxon.
|
String |
getCommonName(Integer id)
Returns the common name corresponding to the given NCBI taxon.
|
String |
getScientificName(Integer id)
Returns the scientific 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 getScientificName(Integer id)
id
- the NCBI taxonpublic String getCommonName(Integer id)
id
- the NCBI taxonpublic String getAssembly(Integer id)
id
- the NCBI taxonCopyright © 2016. All rights reserved.