|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bdgp.io.AbstractDataAdapter
apollo.dataadapter.AbstractApolloAdapter
apollo.dataadapter.ensj19.EnsJAdapter
public abstract class EnsJAdapter
Adaptor providing access to the ensembl database via the ensj-core library.
Originally based on EnsCGIAdaptor.
| Field Summary | |
|---|---|
static java.lang.String |
STABLE_ID_PREFIX
|
protected java.util.Properties |
stateInformation
|
long |
tend
|
long |
tstart
|
| Fields inherited from class apollo.dataadapter.AbstractApolloAdapter |
|---|
curation_set, style |
| Fields inherited from class org.bdgp.io.AbstractDataAdapter |
|---|
listeners |
| Fields inherited from interface apollo.dataadapter.ApolloDataAdapterI |
|---|
OP_APPEND_DATA, OP_READ_DATA, OP_READ_RAW_ANALYSIS, OP_READ_SEQUENCE, OP_WRITE_DATA |
| Constructor Summary | |
|---|---|
EnsJAdapter()
|
|
| Method Summary | |
|---|---|
void |
clearStateInformation()
This SHOULD reset all the contents of the stateInformation being held by an adapter: with setStateInformation, this is not guaranteed. |
void |
commitChanges(CurationSet curationSet)
writes the changes from a featureChangeLog to a writeable datasource. |
protected StrandedFeatureSetI |
getAnnotatedRegion(CurationSet curationSet)
|
CurationSet |
getCurationSet()
returns a saved CurationSet. |
protected CurationSet |
getCurationSetWithoutClearingData()
|
protected org.ensembl19.driver.Driver |
getDriver()
|
java.util.Properties |
getDriverConf()
Get the value of driverConf. |
java.lang.String |
getInput()
Returns the input String passed to the DataAdapter, the input is of course associated with the input type Should this go into org.bdgp.io.DataAdapter? |
DataInputType |
getInputType()
Returns the type of input data (gene,file,band...) |
protected org.ensembl19.datamodel.LinearLocation |
getLocation()
|
java.lang.String |
getLoggingFile()
Get the value of loggingFile. |
protected int |
getMode()
|
java.lang.String |
getName()
Name label for use in Data Adapter Chooser. |
protected java.lang.String |
getOrganism()
An ugly hack to tease the organism name from the database name Ignore it if this doesn't parse out |
java.lang.String |
getRawAnalysisResults(java.lang.String id)
|
protected SequenceI |
getReferenceSequence()
|
protected java.lang.String |
getRegion()
|
SequenceI |
getSequence(DbXref dbxref,
int start,
int end)
|
SequenceI |
getSequence(java.lang.String id)
Strings for input types |
java.util.Vector |
getSequences(DbXref[] dbxref)
|
java.util.Vector |
getSequences(DbXref[] dbxref,
int[] start,
int[] end)
|
java.util.Properties |
getStateInformation()
State info Properties carries all the info needed for the adapter to do its query This is an alternative to setDataInput. |
org.bdgp.io.IOOperation[] |
getSupportedOperations()
Returns a list of all operations supported by this data adapter |
java.lang.String |
getType()
From org.bdgp.io.DataAdapter. |
void |
init()
From org.bdgp.io.DataAdapter interface. |
static void |
main(java.lang.String[] args)
|
void |
printTime(java.lang.String message)
|
void |
setDriverConf(java.util.Properties v)
Set the value of driverConf. |
void |
setLoggingFile(java.lang.String v)
Set the value of loggingFile. |
void |
setRegion(java.lang.String region)
Set the region to be retrieved by subsequent calls to getCurrationSet(). |
void |
setStateInformation(java.util.Properties props)
This should set StateInformation object! see StateInformation for Strings to use for keys. |
protected void |
validateRegionSpecified(java.util.Properties properties)
|
| Methods inherited from class org.bdgp.io.AbstractDataAdapter |
|---|
addProgressListener, fireProgressEvent, removeProgressListener, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.bdgp.io.VisualDataAdapter |
|---|
addProgressListener, fireProgressEvent, getUI, removeProgressListener |
| Field Detail |
|---|
public long tstart
public long tend
public static final java.lang.String STABLE_ID_PREFIX
protected java.util.Properties stateInformation
| Constructor Detail |
|---|
public EnsJAdapter()
| Method Detail |
|---|
public void init()
AbstractApolloAdapter
init in interface org.bdgp.io.DataAdapterinit in class AbstractApolloAdapterpublic void printTime(java.lang.String message)
public java.lang.String getName()
AbstractApolloAdapter
getName in interface org.bdgp.io.DataAdaptergetName in class AbstractApolloAdapterpublic java.lang.String getType()
AbstractApolloAdapter
getType in interface org.bdgp.io.DataAdaptergetType in class AbstractApolloAdapterpublic DataInputType getInputType()
AbstractApolloAdapter
getInputType in interface ApolloDataAdapterIgetInputType in class AbstractApolloAdapterShould this go into org.bdgp.io.DataAdapter?public java.lang.String getInput()
AbstractApolloAdapter
getInput in interface ApolloDataAdapterIgetInput in class AbstractApolloAdapterpublic org.bdgp.io.IOOperation[] getSupportedOperations()
org.bdgp.io.DataAdapter
public void setRegion(java.lang.String region)
throws ApolloAdapterException
setRegion in interface ApolloDataAdapterIsetRegion in class AbstractApolloAdapterregion - region to be retrieved. Region is encoded as parameters
separated by spaces "CHR START END".
ApolloAdapterExceptionpublic java.util.Properties getStateInformation()
ApolloDataAdapterI
getStateInformation in interface ApolloDataAdapterIgetStateInformation in class AbstractApolloAdapterpublic void setStateInformation(java.util.Properties props)
ApolloDataAdapterI
setStateInformation in interface ApolloDataAdapterIsetStateInformation in class AbstractApolloAdapter
protected CurationSet getCurationSetWithoutClearingData()
throws ApolloAdapterException
ApolloAdapterException
public CurationSet getCurationSet()
throws ApolloAdapterException
ApolloDataAdapterI
getCurationSet in interface ApolloDataAdapterIgetCurationSet in class AbstractApolloAdapterApolloAdapterExceptionprotected java.lang.String getOrganism()
protected org.ensembl19.datamodel.LinearLocation getLocation()
throws org.ensembl19.driver.AdaptorException,
org.ensembl19.driver.ConfigurationException
org.ensembl19.driver.AdaptorException
org.ensembl19.driver.ConfigurationException
protected StrandedFeatureSetI getAnnotatedRegion(CurationSet curationSet)
throws ApolloAdapterException
ApolloAdapterException
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public SequenceI getSequence(java.lang.String id)
throws ApolloAdapterException
ApolloDataAdapterI
getSequence in interface ApolloDataAdapterIgetSequence in class AbstractApolloAdapterApolloAdapterException
public SequenceI getSequence(DbXref dbxref,
int start,
int end)
throws ApolloAdapterException
getSequence in interface ApolloDataAdapterIgetSequence in class AbstractApolloAdapterApolloAdapterException
public java.util.Vector getSequences(DbXref[] dbxref)
throws ApolloAdapterException
getSequences in interface ApolloDataAdapterIgetSequences in class AbstractApolloAdapterApolloAdapterException
public java.util.Vector getSequences(DbXref[] dbxref,
int[] start,
int[] end)
throws ApolloAdapterException
getSequences in interface ApolloDataAdapterIgetSequences in class AbstractApolloAdapterApolloAdapterException
public void commitChanges(CurationSet curationSet)
throws ApolloAdapterException
ApolloDataAdapterI
commitChanges in interface ApolloDataAdapterIcommitChanges in class AbstractApolloAdapterApolloAdapterException
public java.lang.String getRawAnalysisResults(java.lang.String id)
throws ApolloAdapterException
getRawAnalysisResults in interface ApolloDataAdapterIgetRawAnalysisResults in class AbstractApolloAdapterApolloAdapterExceptionpublic java.lang.String getLoggingFile()
public void setLoggingFile(java.lang.String v)
v - Value to assign to loggingFile.public java.util.Properties getDriverConf()
protected org.ensembl19.driver.Driver getDriver()
protected int getMode()
public void setDriverConf(java.util.Properties v)
v - Value to assign to driverConf.protected java.lang.String getRegion()
protected SequenceI getReferenceSequence()
public void clearStateInformation()
AbstractApolloAdapter
clearStateInformation in class AbstractApolloAdapter
protected void validateRegionSpecified(java.util.Properties properties)
throws ApolloAdapterException
ApolloAdapterException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||