|
|||||||||
| 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.FileConverter
org.intermine.bio.dataconversion.BioFileConverter
public abstract class BioFileConverter
A FileConverter that automatically sets the dataSets collection of objects as they are stored.
| Constructor Summary | |
|---|---|
BioFileConverter(ItemWriter writer,
Model model)
Create a new BioFileConverter. |
|
BioFileConverter(ItemWriter writer,
Model model,
java.lang.String dataSourceName,
java.lang.String dataSetTitle)
Create a new BioFileConverter. |
|
BioFileConverter(ItemWriter writer,
Model model,
java.lang.String dataSourceName,
java.lang.String dataSetTitle,
java.lang.String ontology)
Create a new BioFileConverter. |
|
| Method Summary | |
|---|---|
Item |
createCrossReference(java.lang.String subjectId,
java.lang.String value,
java.lang.String dataSource,
boolean store)
Create a new CrossReference. |
Item |
createSynonym(Item item,
java.lang.String value,
boolean store)
Create a new Synonym. |
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 ref 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()
|
protected Item |
makeLocation(java.lang.String chromosomeId,
java.lang.String sequenceFeatureId,
java.lang.String startString,
java.lang.String endString,
java.lang.String strand,
boolean store)
Make a Location between a Feature and a Chromosome. |
| Methods inherited from class org.intermine.dataconversion.FileConverter |
|---|
close, getCurrentFile, process, setCurrentFile |
| 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 BioFileConverter(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 BioFileConverter(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 titleontology - ID of ontology object. if NULL no SO object will be stored
public BioFileConverter(ItemWriter writer,
Model model)
writer - the Writer used to output the resultant itemsmodel - the data model| Method Detail |
|---|
public java.lang.String getSequenceOntologyRefId()
public 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 Item createSynonym(Item item,
java.lang.String value,
boolean store)
throws org.xml.sax.SAXException,
ObjectStoreException
item - objectvalue - 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 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 stored
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 storedpublic java.lang.String getOrganism(java.lang.String taxonId)
taxonId - NCBI taxonomy id of organism to create
protected Item makeLocation(java.lang.String chromosomeId,
java.lang.String sequenceFeatureId,
java.lang.String startString,
java.lang.String endString,
java.lang.String strand,
boolean store)
chromosomeId - Chromosome Item identifiersequenceFeatureId - the Item identifier of the featurestartString - the start positionendString - the end positionstrand - the strandstore - if true the location item will be saved in the database
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||