Class BiomartMapping
java.lang.Object
com.compomics.util.experiment.biology.taxonomy.mappings.BiomartMapping
Mapping of the species to BioMart dataset.
- Author:
- Marc Vaudel, Harald Barsnes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDataset(String datasetName) Returns the Ensembl dataset for the given assembly.voidloadMapping(File ensemblFile) Loads the species mapping from a file.
-
Field Details
-
SEPARATOR
The separator used to separate line contents.- See Also:
-
-
Constructor Details
-
BiomartMapping
public BiomartMapping()Constructor.
-
-
Method Details
-
loadMapping
Loads the species mapping from a file. Previous mapping will be overwritten.- Parameters:
ensemblFile- the Ensembl BioMart file- Throws:
IOException- exception thrown whenever an error occurred while reading the file.
-
getDataset
Returns the Ensembl dataset for the given assembly. Null if not found.- Parameters:
datasetName- the dataset name. E.g. 'hsapiens_gene_ensembl' or 'acomosus_eg_gene'.- Returns:
- the Ensembl dataset version
-