|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.dataadapter.chado.jdbc.TigrChadoInstance
apollo.dataadapter.chado.jdbc.TigrSybilChadoInstance
public class TigrSybilChadoInstance
Implementation of AbstractChadoInstance for TIGR's "Sybil" comparative chado databases. At TIGR we distinguish between "annotation" or "project" databases, which are strictly single-genome, and "Sybil" comparative databases, which contain multiple genomes and comparative analyses that relate them. TODO - it remains to be seen whether there are any differences between this class and TigrChadoInstance; if there are none then this class can be removed.
| Field Summary |
|---|
| Fields inherited from class apollo.dataadapter.chado.jdbc.TigrChadoInstance |
|---|
logger |
| Constructor Summary | |
|---|---|
TigrSybilChadoInstance()
|
|
| Method Summary | |
|---|---|
boolean |
cacheAnalysisTable()
|
void |
checkForLocation(DataInput dataInput)
If dataInputs type is configured as a location, then change dataInput to be a location - is there a better way to do this? |
protected void |
clear()
|
ChadoInstance |
cloneInstance()
|
protected void |
getAnnotations(java.sql.Connection conn,
SequenceI refSeq,
StrandedFeatureSet sfs,
apollo.dataadapter.chado.jdbc.FeatureLocImplementation featLocImp,
boolean getFeatProps,
boolean getSynonyms,
boolean getDbXRefs,
ChadoAdapter adapter)
|
StrandedFeatureSet |
getAnnotStrandedFeatSet()
|
java.lang.String |
getCdsTransRelationTerm()
|
JdbcChadoAdapter |
getChadoAdapter()
|
java.util.List |
getChadoTransMacros()
This is the beginning of trying to get chado-adapter.xml and transactionXMLTemplate non-redundant, so you dont have to configure the same things twice. |
java.lang.String |
getCommentPropertyTerm()
|
protected java.sql.Connection |
getConnection()
|
boolean |
getCopyGeneModelsIntoResultTier()
|
java.lang.String |
getExonTransRelationTerm()
|
java.lang.String |
getFeatureCreateDatePropertyTerm()
|
protected java.lang.Long |
getFeatureCVTermId(java.lang.String name)
calls JdbcChadoAdapter -> cvterms should have its own class |
java.lang.String |
getFeatureOwnerPropertyTerm()
|
ChadoProgram[] |
getGenePredictionPrograms()
Return array for all the gene prediction programs. |
SeqType |
getLocationSeqType()
Assumes theres only 1 location seq type - returns first it finds |
java.lang.String |
getLogDirectory()
|
java.util.List |
getOneLevelAnnotTypes()
Get a list of annotation types that are saved in Chado db as one level features from a list of types. |
ChadoProgram[] |
getOneLevelResultPrograms()
for simple results that are only 1 level deep |
java.lang.String |
getPartOfCvTerm()
return string for part of relationship (tigr part_of, fb partof) |
java.lang.String |
getPolypeptideCdsRelationTerm()
|
protected java.lang.Long |
getPolypeptideCVTermId()
|
java.lang.String |
getPolypeptideTransRelationTerm()
|
java.lang.String |
getPolypeptideType()
Old SO/SOFA uses "protein", new uses "polypeptide" (default) |
protected java.lang.Long |
getProducedByCVTermId()
|
java.lang.String |
getPropertyTypeCVName()
|
boolean |
getPureJDBCCopyOnWrite()
|
boolean |
getPureJDBCNoCommit()
|
boolean |
getPureJDBCUseCDS()
|
boolean |
getPureJDBCWriteMode()
|
boolean |
getQueryFeatureIdWithName()
|
boolean |
getQueryFeatureIdWithUniquename()
|
java.lang.String |
getRelationshipCVName()
|
protected java.lang.Long |
getRelationshipCVTermId(java.lang.String name)
|
StrandedFeatureSet |
getResultStrandedFeatSet()
|
ChadoProgram[] |
getSearchHitPrograms()
Return array of strings for all the hit programs. |
java.lang.String |
getSeqDescriptionCVName()
|
java.lang.String |
getSeqDescriptionTerm()
|
SeqType |
getSeqType(int i)
Return ith SeqType |
SeqType |
getSeqType(java.lang.String name)
SeqType for name |
int |
getSeqTypesSize()
Return number of seq types for instance |
java.lang.String |
getSynonymPropertyTerm()
|
java.lang.String |
getSyntenyRelationshipType()
|
java.util.List |
getThreeLevelAnnotTypes()
Get a list of features that are stored in the chado db as three level features (gene-namedFeaure-exon). |
apollo.dataadapter.chado.jdbc.FeatureLocImplementation |
getTopFeatLoc()
|
java.lang.String |
getTopLevelFeatType()
Top level feature type is needed for saving back to chado. |
java.lang.Long |
getTranscriptCvTermId()
|
java.lang.String |
getTranscriptName(FeatureSet tfs,
java.lang.String program)
|
java.lang.String |
getTranscriptTerm()
|
java.lang.String |
getTransGeneRelationTerm()
|
java.lang.String |
getTransProtRelationTerm()
|
boolean |
getUseSynonyms()
|
java.lang.String |
getWritebackTemplateFile()
|
boolean |
searchHitsHaveFeatLocs()
returns true if search hits have feature locs. |
void |
setCacheAnalysisTable(boolean cache)
|
void |
setCdsTransRelationTerm(java.lang.String term)
Need to set (from chado-adapter.xml) if diff from default |
void |
setChadoAdapter(JdbcChadoAdapter jdbcAdapter)
|
void |
setCommentPropertyTerm(java.lang.String commentTerm)
|
void |
setCopyGeneModelsIntoResultTier(boolean copyModels)
|
void |
setExonTransRelationTerm(java.lang.String term)
Need to set (from chado-adapter.xml) if diff from default |
void |
setFeatureCreateDatePropertyTerm(java.lang.String dateTerm)
|
void |
setFeatureCVName(java.lang.String featCV)
|
void |
setFeatureOwnerPropertyTerm(java.lang.String ownerTerm)
|
void |
setGenePredictionPrograms(ChadoProgram[] genePredictionPrograms)
|
void |
setId(java.lang.String id)
|
void |
setLogDirectory(java.lang.String path)
|
void |
setOneLevelAnnotTypes(java.util.List features)
Set a list of annotation types that are saved in the Chado database as one-level features. |
void |
setOneLevelResultPrograms(ChadoProgram[] oneLevelResults)
|
void |
setPartOfCvTerm(java.lang.String term)
|
void |
setPolypeptideCdsRelationTerm(java.lang.String term)
Need to set (from chado-adapter.xml) if diff from default |
void |
setPolypeptideTransRelationTerm(java.lang.String term)
Need to set (from chado-adapter.xml) if diff from default |
void |
setPolypeptideType(java.lang.String polypeptideType)
Old SO/SOFA uses "protein", new uses "polypeptide" (default) |
void |
setPropertyTypeCVName(java.lang.String cv)
|
void |
setPureJDBCCopyOnWrite(boolean copyOnWrite)
|
void |
setPureJDBCNoCommit(boolean noCommit)
|
void |
setPureJDBCUseCDS(boolean useCDS)
|
void |
setPureJDBCWriteMode(boolean writeMode)
|
void |
setQueryFeatureIdWithName(boolean newVal)
|
void |
setQueryFeatureIdWithUniquename(boolean newVal)
|
void |
setRelationshipCVName(java.lang.String relCV)
|
void |
setRetrieveAnnotations(boolean retrieveAnnotations)
|
void |
setSearchHitPrograms(ChadoProgram[] searchHitPrograms)
|
void |
setSearchHitsHaveFeatLocs(boolean haveFeatLocs)
|
void |
setSeqDescriptionCVName(java.lang.String cvName)
|
void |
setSeqDescriptionTerm(java.lang.String term)
|
void |
setSeqTypeList(java.util.List seqTypes)
|
void |
setSynonymPropertyTerm(java.lang.String synonymPropertyTerm)
|
void |
setSyntenyRelationshipType(java.lang.String syntenyRelationshipType)
|
void |
setThreeLevelAnnotTypes(java.util.List features)
Set a list of features that are saved in the chado db as three-level features. |
void |
setTransGeneRelationTerm(java.lang.String term)
Need to set (from chado-adapter.xml) if diff from default |
void |
setTransProtRelationTerm(java.lang.String term)
Need to set (from chado-adapter.xml) if diff from default |
void |
setUseSynonyms(boolean useSynonyms)
|
void |
setWritebackTemplateFile(java.lang.String templateFile)
|
boolean |
typeHasStartAndEnd(java.lang.String typeName)
Does type require start & end data |
| Methods inherited from class apollo.dataadapter.chado.jdbc.TigrChadoInstance |
|---|
getAnalysisType, getCdsSql, getCurationSet, getCurationSetInRange, getFeatureCVName, getFeatureType, getGeneNameField, getPredictedCdsSql, getTargetName, getTranscriptNameField, setTranslationStartAndStop, setTranslationStartAndStop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TigrSybilChadoInstance()
| Method Detail |
|---|
public ChadoInstance cloneInstance()
cloneInstance in interface ChadoInstancepublic void setId(java.lang.String id)
setId in interface ChadoInstancepublic void setChadoAdapter(JdbcChadoAdapter jdbcAdapter)
setChadoAdapter in interface ChadoInstancepublic JdbcChadoAdapter getChadoAdapter()
getChadoAdapter in interface ChadoInstanceprotected java.sql.Connection getConnection()
public void setWritebackTemplateFile(java.lang.String templateFile)
setWritebackTemplateFile in interface ChadoInstancepublic java.lang.String getWritebackTemplateFile()
getWritebackTemplateFile in interface ChadoInstancepublic void setPureJDBCWriteMode(boolean writeMode)
setPureJDBCWriteMode in interface ChadoInstancepublic boolean getPureJDBCWriteMode()
getPureJDBCWriteMode in interface ChadoInstancepublic void setPureJDBCCopyOnWrite(boolean copyOnWrite)
setPureJDBCCopyOnWrite in interface ChadoInstancepublic boolean getPureJDBCCopyOnWrite()
getPureJDBCCopyOnWrite in interface ChadoInstancepublic void setPureJDBCNoCommit(boolean noCommit)
setPureJDBCNoCommit in interface ChadoInstancepublic boolean getPureJDBCNoCommit()
getPureJDBCNoCommit in interface ChadoInstancepublic void setPureJDBCUseCDS(boolean useCDS)
setPureJDBCUseCDS in interface ChadoInstancepublic boolean getPureJDBCUseCDS()
getPureJDBCUseCDS in interface ChadoInstancepublic void setLogDirectory(java.lang.String path)
setLogDirectory in interface ChadoInstancepublic java.lang.String getLogDirectory()
getLogDirectory in interface ChadoInstancepublic void setGenePredictionPrograms(ChadoProgram[] genePredictionPrograms)
setGenePredictionPrograms in interface ChadoInstancepublic boolean getUseSynonyms()
getUseSynonyms in interface ChadoInstancepublic void setUseSynonyms(boolean useSynonyms)
setUseSynonyms in interface ChadoInstancepublic ChadoProgram[] getGenePredictionPrograms()
getGenePredictionPrograms in interface ChadoInstance
public java.lang.String getTranscriptName(FeatureSet tfs,
java.lang.String program)
getTranscriptName in interface ChadoInstancepublic void setSearchHitPrograms(ChadoProgram[] searchHitPrograms)
setSearchHitPrograms in interface ChadoInstancepublic ChadoProgram[] getSearchHitPrograms()
getSearchHitPrograms in interface ChadoInstancepublic void setOneLevelResultPrograms(ChadoProgram[] oneLevelResults)
setOneLevelResultPrograms in interface ChadoInstancepublic ChadoProgram[] getOneLevelResultPrograms()
ChadoInstance
getOneLevelResultPrograms in interface ChadoInstancepublic java.util.List getOneLevelAnnotTypes()
getOneLevelAnnotTypes in interface ChadoInstancepublic void setOneLevelAnnotTypes(java.util.List features)
ChadoInstance
setOneLevelAnnotTypes in interface ChadoInstancefeatures - a list of chado cvterm.namepublic java.util.List getThreeLevelAnnotTypes()
getThreeLevelAnnotTypes in interface ChadoInstancepublic void setThreeLevelAnnotTypes(java.util.List features)
ChadoInstance
setThreeLevelAnnotTypes in interface ChadoInstancefeatures - a list of feature names.public boolean searchHitsHaveFeatLocs()
searchHitsHaveFeatLocs in interface ChadoInstancepublic void setSearchHitsHaveFeatLocs(boolean haveFeatLocs)
setSearchHitsHaveFeatLocs in interface ChadoInstanceprotected java.lang.Long getRelationshipCVTermId(java.lang.String name)
public void setRelationshipCVName(java.lang.String relCV)
setRelationshipCVName in interface ChadoInstancepublic java.lang.String getRelationshipCVName()
getRelationshipCVName in interface ChadoInstancepublic java.lang.String getPartOfCvTerm()
getPartOfCvTerm in interface ChadoInstancepublic void setPartOfCvTerm(java.lang.String term)
setPartOfCvTerm in interface ChadoInstancepublic java.lang.String getTransProtRelationTerm()
getTransProtRelationTerm in interface ChadoInstancepublic void setTransProtRelationTerm(java.lang.String term)
setTransProtRelationTerm in interface ChadoInstancepublic java.lang.String getTransGeneRelationTerm()
getTransGeneRelationTerm in interface ChadoInstancepublic void setTransGeneRelationTerm(java.lang.String term)
setTransGeneRelationTerm in interface ChadoInstancepublic java.lang.String getExonTransRelationTerm()
getExonTransRelationTerm in interface ChadoInstancepublic void setExonTransRelationTerm(java.lang.String term)
setExonTransRelationTerm in interface ChadoInstancepublic java.lang.String getCdsTransRelationTerm()
getCdsTransRelationTerm in interface ChadoInstancepublic void setCdsTransRelationTerm(java.lang.String term)
setCdsTransRelationTerm in interface ChadoInstancepublic java.lang.String getPolypeptideCdsRelationTerm()
getPolypeptideCdsRelationTerm in interface ChadoInstancepublic void setPolypeptideCdsRelationTerm(java.lang.String term)
setPolypeptideCdsRelationTerm in interface ChadoInstancepublic java.lang.String getPolypeptideTransRelationTerm()
getPolypeptideTransRelationTerm in interface ChadoInstancepublic void setPolypeptideTransRelationTerm(java.lang.String term)
setPolypeptideTransRelationTerm in interface ChadoInstance
protected java.lang.Long getProducedByCVTermId()
throws apollo.dataadapter.chado.jdbc.AbstractChadoInstance.ProducedByException
apollo.dataadapter.chado.jdbc.AbstractChadoInstance.ProducedByExceptionpublic void setFeatureCVName(java.lang.String featCV)
setFeatureCVName in interface ChadoInstancepublic void setPolypeptideType(java.lang.String polypeptideType)
setPolypeptideType in interface ChadoInstancepublic java.lang.String getPolypeptideType()
ChadoInstance
getPolypeptideType in interface ChadoInstancepublic void setSyntenyRelationshipType(java.lang.String syntenyRelationshipType)
setSyntenyRelationshipType in interface ChadoInstancepublic java.lang.String getSyntenyRelationshipType()
getSyntenyRelationshipType in interface ChadoInstancepublic void setFeatureOwnerPropertyTerm(java.lang.String ownerTerm)
setFeatureOwnerPropertyTerm in interface ChadoInstancepublic java.lang.String getFeatureOwnerPropertyTerm()
getFeatureOwnerPropertyTerm in interface ChadoInstancepublic void setFeatureCreateDatePropertyTerm(java.lang.String dateTerm)
setFeatureCreateDatePropertyTerm in interface ChadoInstancepublic java.lang.String getFeatureCreateDatePropertyTerm()
getFeatureCreateDatePropertyTerm in interface ChadoInstancepublic void setCommentPropertyTerm(java.lang.String commentTerm)
setCommentPropertyTerm in interface ChadoInstancepublic java.lang.String getCommentPropertyTerm()
getCommentPropertyTerm in interface ChadoInstancepublic java.lang.String getSynonymPropertyTerm()
getSynonymPropertyTerm in interface ChadoInstancepublic void setSynonymPropertyTerm(java.lang.String synonymPropertyTerm)
setSynonymPropertyTerm in interface ChadoInstancepublic java.lang.String getSeqDescriptionCVName()
getSeqDescriptionCVName in interface ChadoInstancepublic void setSeqDescriptionCVName(java.lang.String cvName)
setSeqDescriptionCVName in interface ChadoInstancepublic java.lang.String getSeqDescriptionTerm()
getSeqDescriptionTerm in interface ChadoInstancepublic void setSeqDescriptionTerm(java.lang.String term)
setSeqDescriptionTerm in interface ChadoInstanceprotected java.lang.Long getPolypeptideCVTermId()
public java.lang.Long getTranscriptCvTermId()
getTranscriptCvTermId in interface ChadoInstancepublic java.lang.String getTranscriptTerm()
getTranscriptTerm in interface ChadoInstanceprotected java.lang.Long getFeatureCVTermId(java.lang.String name)
public void setPropertyTypeCVName(java.lang.String cv)
setPropertyTypeCVName in interface ChadoInstancepublic java.lang.String getPropertyTypeCVName()
getPropertyTypeCVName in interface ChadoInstancepublic void setCacheAnalysisTable(boolean cache)
setCacheAnalysisTable in interface ChadoInstancepublic boolean cacheAnalysisTable()
cacheAnalysisTable in interface ChadoInstancepublic void setRetrieveAnnotations(boolean retrieveAnnotations)
setRetrieveAnnotations in interface ChadoInstancepublic void setCopyGeneModelsIntoResultTier(boolean copyModels)
setCopyGeneModelsIntoResultTier in interface ChadoInstancepublic boolean getCopyGeneModelsIntoResultTier()
getCopyGeneModelsIntoResultTier in interface ChadoInstancepublic void setQueryFeatureIdWithUniquename(boolean newVal)
setQueryFeatureIdWithUniquename in interface ChadoInstancepublic boolean getQueryFeatureIdWithUniquename()
getQueryFeatureIdWithUniquename in interface ChadoInstancepublic void setQueryFeatureIdWithName(boolean newVal)
setQueryFeatureIdWithName in interface ChadoInstancepublic boolean getQueryFeatureIdWithName()
getQueryFeatureIdWithName in interface ChadoInstance
protected void getAnnotations(java.sql.Connection conn,
SequenceI refSeq,
StrandedFeatureSet sfs,
apollo.dataadapter.chado.jdbc.FeatureLocImplementation featLocImp,
boolean getFeatProps,
boolean getSynonyms,
boolean getDbXRefs,
ChadoAdapter adapter)
public java.util.List getChadoTransMacros()
getChadoTransMacros in interface ChadoInstancepublic void setSeqTypeList(java.util.List seqTypes)
setSeqTypeList in interface ChadoInstancepublic int getSeqTypesSize()
ChadoInstance
getSeqTypesSize in interface ChadoInstancepublic SeqType getSeqType(int i)
ChadoInstance
getSeqType in interface ChadoInstancepublic SeqType getLocationSeqType()
getLocationSeqType in interface ChadoInstancepublic java.lang.String getTopLevelFeatType()
getTopLevelFeatType in interface ChadoInstancepublic void checkForLocation(DataInput dataInput)
checkForLocation in interface ChadoInstancepublic SeqType getSeqType(java.lang.String name)
ChadoInstance
getSeqType in interface ChadoInstancepublic boolean typeHasStartAndEnd(java.lang.String typeName)
ChadoInstance
typeHasStartAndEnd in interface ChadoInstancepublic StrandedFeatureSet getResultStrandedFeatSet()
getResultStrandedFeatSet in interface ChadoInstancepublic StrandedFeatureSet getAnnotStrandedFeatSet()
getAnnotStrandedFeatSet in interface ChadoInstanceprotected void clear()
public apollo.dataadapter.chado.jdbc.FeatureLocImplementation getTopFeatLoc()
getTopFeatLoc in interface ChadoInstance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||