public class BiomartEnsemblNcbiFetcher extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BIOMARTPATH |
Constructor and Description |
---|
BiomartEnsemblNcbiFetcher() |
Modifier and Type | Method and Description |
---|---|
String[] |
attributesToRetrieveFromBioMartForProteinQuery(String biomartTaxonName)
Method that based on the taxon supplied constructs an array of attributes that can be queried on.
|
Map<Taxon,File> |
fetch(Collection<Taxon> taxa)
Main method that iterates through each taxon supplied and calls the fetch method for each taxon.
|
File |
fetchFileForProteinQuery(String bioMartTaxonName)
Given a biomart taxon formatted name fetch the file from biomart and save as a local file.
|
String |
getBiomartTaxonName(Taxon gemmaTaxon)
Biomart taxon names are formatted as the scientific name all lowercase with the genus name shortened to one letter
and appended to species name E.g.
|
public static final String BIOMARTPATH
public String[] attributesToRetrieveFromBioMartForProteinQuery(String biomartTaxonName)
biomartTaxonName
- Biomart formatted taxon namepublic Map<Taxon,File> fetch(Collection<Taxon> taxa) throws IOException
taxa
- Collection of taxa to retrieve biomart files for.IOException
- if there is a problem while manipulating the filepublic File fetchFileForProteinQuery(String bioMartTaxonName) throws IOException
bioMartTaxonName
- taxon name from biomartIOException
- when there is a problem while manipulating the filepublic String getBiomartTaxonName(Taxon gemmaTaxon)
gemmaTaxon
- taxon objectRuntimeException
- The taxon does not contain a valid scientific name.Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.