|
|||||||||
| 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.DirectoryConverter
org.intermine.bio.dataconversion.BioDirectoryConverter
public abstract class BioDirectoryConverter
A DirectoryConverter that automatically sets the dataSets collection of objects as they are stored.
| Constructor Summary | |
|---|---|
BioDirectoryConverter(ItemWriter writer,
Model model,
java.lang.String dataSourceName,
java.lang.String dataSetTitle)
Create a new BioDirectoryConverter. |
|
BioDirectoryConverter(ItemWriter writer,
Model model,
java.lang.String dataSourceName,
java.lang.String dataSetTitle,
java.lang.String ontology)
Create a new BioDirectoryConverter. |
|
| Method Summary | |
|---|---|
Item |
createCrossReference(java.lang.String subjectId,
java.lang.String value,
java.lang.String dataSource,
boolean store)
Create a new CrossReference. |
Item |
createSynonym(java.lang.String subjectId,
java.lang.String value,
boolean store)
Create a new Synonym. |
java.lang.String |
getDataSet(java.lang.String title,
java.lang.String dataSourceRefId)
Return a DataSet item with the given details. |
java.lang.String |
getDataSource(java.lang.String name)
Return a DataSource item for the given title |
java.lang.String |
getOrganism(java.lang.String taxonId)
The Organism item created from the taxon id passed to the constructor. |
java.lang.String |
getSequenceOntologyRefId()
|
void |
setDataSet(java.lang.String refId)
Update the dataset reference Id. |
| Methods inherited from class org.intermine.dataconversion.DirectoryConverter |
|---|
close, 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 BioDirectoryConverter(ItemWriter writer,
Model model,
java.lang.String dataSourceName,
java.lang.String dataSetTitle)
writer - the Writer used to output the resultant itemsmodel - the data modeldataSourceName - the DataSource namedataSetTitle - the DataSet title
public BioDirectoryConverter(ItemWriter writer,
Model model,
java.lang.String dataSourceName,
java.lang.String dataSetTitle,
java.lang.String ontology)
writer - the Writer used to output the resultant itemsmodel - the data modeldataSourceName - the DataSource namedataSetTitle - the DataSet title| Method Detail |
|---|
public void setDataSet(java.lang.String refId)
refId - ID representing dataset objectpublic java.lang.String getDataSource(java.lang.String name)
name - the DataSource name
public java.lang.String getDataSet(java.lang.String title,
java.lang.String dataSourceRefId)
title - the DataSet titledataSourceRefId - the DataSource referenced by the the DataSet
public java.lang.String getOrganism(java.lang.String taxonId)
taxonId - NCBI taxonomy id of organism to create
public Item createCrossReference(java.lang.String subjectId,
java.lang.String value,
java.lang.String dataSource,
boolean store)
throws org.xml.sax.SAXException,
ObjectStoreException
subjectId - id representing the object (eg. Gene) this CrossReference describes.value - identifierdataSource - external databasestore - if true, will store item
ObjectStoreException - if the synonym can't be stored
org.xml.sax.SAXException - if the synonym 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 | ||||||||