public class BiomartEnsembleNcbiParser extends LineMapParser<String,Ensembl2NcbiValueObject>
COMMENT_MARK, logMIN_PARSED_LINES_FOR_UPDATE, PARSE_ALERT_TIME_FREQUENCY_MSPARSE_ALERT_FREQUENCY| Constructor and Description |
|---|
BiomartEnsembleNcbiParser(Taxon taxon,
String[] attributesInFile)
Class needs to be initialised with taxon and which attributes have been used in query for biomart and thus what
columns are in this file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key)
Method that returns a particular BioMartEnsembleNcbi based on a peptide id.
|
Ensembl2NcbiValueObject |
createBioMartEnsembleNcbi(String[] fields)
Given an array of strings representing the line to parse then create a BioMartEnsembleNcbi value object with some
validation.
|
Ensembl2NcbiValueObject |
get(String key)
Method that returns a particular BioMartEnsembleNcbi based on a peptide id.
|
String[] |
getBioMartFields() |
int |
getBioMartFieldsPerRow()
Based on what attributes were set on the original file then calculate how many columns should be in file.
|
Collection<String> |
getKeySet()
Getter for values in map that is BioMartEnsembleNcbi value objects associated with the parsing of this file
|
Map<String,Ensembl2NcbiValueObject> |
getMap() |
Collection<Ensembl2NcbiValueObject> |
getResults()
Getter for values in map that is BioMartEnsembleNcbi value objects associated with the parsing of this file
|
Ensembl2NcbiValueObject |
parseOneLine(String line)
Method to parse one biomart line, note that there is a many to many relationship between ensemble ids and entrez
gene ids.
|
void |
setBioMartFields(String[] bioMartFields) |
void |
setTaxon(Taxon taxon) |
getKey, parse, putparse, parsepublic BiomartEnsembleNcbiParser(Taxon taxon, String[] attributesInFile)
taxon - Taxon for the current file being processedattributesInFile - The attributes that were queried for in Biomartpublic boolean containsKey(String key)
containsKey in class BasicLineMapParser<String,Ensembl2NcbiValueObject>public Ensembl2NcbiValueObject get(String key)
get in class BasicLineMapParser<String,Ensembl2NcbiValueObject>public Collection<String> getKeySet()
getKeySet in class BasicLineMapParser<String,Ensembl2NcbiValueObject>public Collection<Ensembl2NcbiValueObject> getResults()
getResults in interface Parser<Ensembl2NcbiValueObject>getResults in class BasicLineMapParser<String,Ensembl2NcbiValueObject>public Ensembl2NcbiValueObject parseOneLine(String line)
parseOneLine in interface LineParser<Ensembl2NcbiValueObject>parseOneLine in class BasicLineMapParser<String,Ensembl2NcbiValueObject>line - line to parsepublic Ensembl2NcbiValueObject createBioMartEnsembleNcbi(String[] fields) throws NumberFormatException, FileFormatException
fields - Parsed line split on delimiterNumberFormatException - Parsing a number that is not oneFileFormatException - Validation than when a duplicate record is found then the peptide id is the same
the
ensemble gene id should be the same.public String[] getBioMartFields()
public void setBioMartFields(String[] bioMartFields)
public int getBioMartFieldsPerRow()
public Map<String,Ensembl2NcbiValueObject> getMap()
public void setTaxon(Taxon taxon)
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.