|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.dataconversion.DataConverter
org.intermine.dataconversion.DBConverter
org.intermine.bio.dataconversion.BioDBConverter
public abstract class BioDBConverter
A DBConverter with helper methods for bio sources.
| Constructor Summary | |
|---|---|
BioDBConverter(Database database,
Model tgtModel,
ItemWriter writer)
Create a new BioDBConverter object. |
|
BioDBConverter(Database database,
Model tgtModel,
ItemWriter writer,
java.lang.String dataSourceName,
java.lang.String dataSetTitle)
Create a new BioDBConverter object. |
|
| Method Summary | |
|---|---|
Item |
createSynonym(java.lang.String subjectId,
java.lang.String value,
boolean store)
Create a new Synonym. |
protected Item |
getChromosome(java.lang.String identifier,
int taxonId)
Make a Chromosome Item, then store and return it. |
Item |
getDataSetItem(int taxonId)
Return the DataSet Item created from the dataSetTitle. |
Item |
getDataSetItem(java.lang.String title,
Item dataSourceItem)
Return a DataSource item for the given name |
Item |
getDataSetItem(java.lang.String title,
java.lang.String url,
java.lang.String description,
Item dataSourceItem)
Return a DataSource item with the given details. |
abstract java.lang.String |
getDataSetTitle(int taxonId)
Return the DataSet title for a given taxon id. |
Item |
getDataSourceItem()
Return the DataSource Item created from the dataSourceName. |
Item |
getDataSourceItem(java.lang.String name)
Return a DataSet item for the given title |
java.lang.String |
getDataSourceName()
Return the data source name set by setDataSourceName(). |
Item |
getOrganismItem(int taxonId)
The Organism item created from the taxon id passed to the constructor. |
java.lang.String |
getSequenceOntologyRefId()
|
protected Item |
makeLocation(java.lang.String chromosomeId,
java.lang.String locatedSequenceFeatureId,
int start,
int end,
int strand,
int taxonId)
Make a Location Relation between a LocatedSequenceFeature and a Chromosome. |
void |
setDataSourceName(java.lang.String name)
Set the name of the DataSource Item to create for this converter. |
| Methods inherited from class org.intermine.dataconversion.DBConverter |
|---|
getDatabase, process |
| Methods inherited from class org.intermine.dataconversion.DataConverter |
|---|
addUniqueItemId, alias, createItem, getItemWriter, getModel, getUniqueItemId, newId, setStoreHook, store, store, store, store, store |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BioDBConverter(Database database,
Model tgtModel,
ItemWriter writer,
java.lang.String dataSourceName,
java.lang.String dataSetTitle)
database - the database to read fromtgtModel - the Model used by the object store we will write to with the ItemWriterwriter - an ItemWriter used to handle the resultant ItemsdataSourceName - the DataSource namedataSetTitle - the DataSet title
public BioDBConverter(Database database,
Model tgtModel,
ItemWriter writer)
database - the database to read fromtgtModel - the Model used by the object store we will write to with the ItemWriterwriter - an ItemWriter used to handle the resultant Items| Method Detail |
|---|
public void setDataSourceName(java.lang.String name)
name - the namepublic java.lang.String getDataSourceName()
public Item getDataSetItem(int taxonId)
taxonId - the taxon id of the to use when creating the DataSet
public Item getDataSourceItem()
protected Item makeLocation(java.lang.String chromosomeId,
java.lang.String locatedSequenceFeatureId,
int start,
int end,
int strand,
int taxonId)
chromosomeId - Chromosome Item identifierlocatedSequenceFeatureId - the Item identifier of the featurestart - the start positionend - the end positionstrand - the strandtaxonId - the taxon id to use when finding the Chromosome for the Location
public Item getOrganismItem(int taxonId)
taxonId - NCBI taxonomy id of organism to create
public Item getDataSourceItem(java.lang.String name)
name - the DataSet name
public Item getDataSetItem(java.lang.String title,
Item dataSourceItem)
title - the DataSet titledataSourceItem - the DataSource referenced by the the DataSet
public abstract java.lang.String getDataSetTitle(int taxonId)
taxonId - the taxon id
public Item getDataSetItem(java.lang.String title,
java.lang.String url,
java.lang.String description,
Item dataSourceItem)
title - the DataSet titleurl - the new url field, or null if the url shouldn't be setdescription - the new description field, or null if the field shouldn't be setdataSourceItem - the DataSource referenced by the the DataSet
protected Item getChromosome(java.lang.String identifier,
int taxonId)
throws ObjectStoreException
identifier - the chromsome identifiertaxonId - the id of the organism
ObjectStoreException - if an Item can't be stored
public Item createSynonym(java.lang.String subjectId,
java.lang.String value,
boolean store)
throws org.xml.sax.SAXException,
ObjectStoreException
subjectId - id representing the object (eg. Gene) this synonym describes.value - the Synonym valuestore - if true, will store item
ObjectStoreException - if the synonym can't be stored
org.xml.sax.SAXException - if the synonym can't be storedpublic java.lang.String getSequenceOntologyRefId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||