public class SpeciesFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BIOMART_ENSEMBL_FILENAME
The name of the Ensembl BioMart datasets file.
|
static String |
BIOMART_ENSEMBL_GENOME_FILENAME
The name of the Ensembl Genome BioMart datasets file.
|
static String |
ENSEMBL_GENOME_SPECIES
The names of the Ensembl genome species files.
|
static String |
ENSEMBL_SPECIES
The names of the Ensembl species files.
|
static String |
UNIPROT_TAXONOMY_FILENAME
The name of the UniProt taxonomy file.
|
static String |
UNKNOWN
Tag for unknown species.
|
Modifier and Type | Method and Description |
---|---|
static File |
getBiomartEnsemblGenomeMappingFile(String jarFilePath)
Returns the Ensembl Genome BioMart file.
|
static File |
getBiomartEnsemblMappingFile(String jarFilePath)
Returns the Ensembl BioMart file.
|
BiomartMapping |
getBiomartMapping()
Returns the BioMart mapping.
|
String |
getEnsemblAssembly(Integer taxon)
Returns the Ensembl assembly to use for the given taxon.
|
String |
getEnsemblDataset(Integer taxon)
Returns the Ensembl dataset to use for the given taxon.
|
HashMap<String,HashSet<Integer>> |
getEnsembleSpecies()
Returns a map of the species in Ensembl.
|
EnsemblGenomesSpecies |
getEnsemblGenomesSpecies()
Returns the Ensembl genome species mapping.
|
static File |
getEnsemblGenomesSpeciesFile(String jarFilePath)
Returns the Ensembl genome species file.
|
EnsemblSpecies |
getEnsemblSpecies()
Returns the Ensembl species mapping.
|
static File |
getEnsemblSpeciesFile(String jarFilePath)
Returns the Ensembl species file.
|
static SpeciesFactory |
getInstance()
Static method returning the instance of the factory.
|
String |
getLatinName(Integer taxon)
Returns the Latin name of the species corresponding to the given taxon
according to the UniProt mapping.
|
String |
getName(Integer taxon)
Returns the name of the species corresponding to the given taxon
according to the UniProt mapping.
|
static String |
getSpeciesDescription(HashMap<String,Integer> speciesOccurrence)
Returns a listing of the species occurrence map provided.
|
UniprotTaxonomy |
getUniprotTaxonomy()
Returns the UniProt taxonomy mapping.
|
static File |
getUniprotTaxonomyFile(String jarFilePath)
Returns the UniProt taxonomy file.
|
void |
initiate(String jarFilePath)
Initiates the factory using the files of the static fields.
|
public static final String UNKNOWN
public static final String UNIPROT_TAXONOMY_FILENAME
public static final String ENSEMBL_SPECIES
public static final String ENSEMBL_GENOME_SPECIES
public static final String BIOMART_ENSEMBL_FILENAME
public static final String BIOMART_ENSEMBL_GENOME_FILENAME
public static SpeciesFactory getInstance()
public void initiate(String jarFilePath) throws IOException
jarFilePath
- path to the jar fileIOException
- Exception thrown whenever an error occurred while
reading a mapping file.public static String getSpeciesDescription(HashMap<String,Integer> speciesOccurrence)
speciesOccurrence
- a map containing the occurrence of different
speciespublic static File getEnsemblSpeciesFile(String jarFilePath)
jarFilePath
- the path to the jar filepublic static File getEnsemblGenomesSpeciesFile(String jarFilePath)
jarFilePath
- the path to the jar filepublic static File getUniprotTaxonomyFile(String jarFilePath)
jarFilePath
- the path to the jar filepublic static File getBiomartEnsemblMappingFile(String jarFilePath)
jarFilePath
- the path to the jar filepublic static File getBiomartEnsemblGenomeMappingFile(String jarFilePath)
jarFilePath
- the path to the jar filepublic String getLatinName(Integer taxon)
taxon
- the NCBI taxon IDpublic String getName(Integer taxon)
taxon
- the NCBI taxon IDpublic String getEnsemblAssembly(Integer taxon)
taxon
- the taxon numberpublic String getEnsemblDataset(Integer taxon)
taxon
- the taxon numberpublic EnsemblSpecies getEnsemblSpecies()
public EnsemblGenomesSpecies getEnsemblGenomesSpecies()
public UniprotTaxonomy getUniprotTaxonomy()
public BiomartMapping getBiomartMapping()
Copyright © 2016. All rights reserved.