|
|||||||||
| 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.das2.DAS2Adapter
public class DAS2Adapter
I implement a AbstractDataAdapter, allowing Apollo to
get information from DAS datasources, using 'simple'
implementions of DASServerI, DASDsn etc.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
|
| Fields inherited from class apollo.dataadapter.AbstractApolloAdapter |
|---|
curation_set, region, 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 | |
|---|---|
DAS2Adapter()
|
|
| 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 curation)
Main method for writing DAS2XML file |
StrandedFeatureSetI |
getAnalysisRegion(CurationSet curation)
Make a call to the chosen DSN, passing in the chosen segment/range into a das "features" command. |
FeatureSetI |
getAnnotatedRegion()
|
CurationSet |
getCurationSet()
returns a saved CurationSet. |
DAS2Request |
getDASServer()
|
DASDsn |
getDSN()
|
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...) |
java.lang.String |
getName()
Name label for use in Data Adapter Chooser. |
java.lang.String |
getRawAnalysisResults(java.lang.String id)
|
SequenceI |
getSequence(DbXref dbxref)
The dbxref passed into this argument is only checked to make sure that the the IdValue it contains is the same as the Id for the DASSegment that this adapter is poised on. |
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()
The adapter is characterised by dsn (e.g. |
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. |
org.bdgp.io.DataAdapterUI |
getUI(org.bdgp.io.IOOperation op)
Returns a user interface for the requested IOOperation. |
void |
init()
From org.bdgp.io.DataAdapter interface. |
static void |
main(java.lang.String[] args)
For testing directly from the command line--give a DAS2XML file as the argument. |
void |
setDASServer(DAS2Request newValue)
|
void |
setDataInput(DataInput dataInput)
Used when Apollo was called from the command line rather than the GUI |
void |
setInput(java.lang.String filename)
Input string that corresponds with the input type (eg gene name for gene input type) |
void |
setRegion(java.lang.String region)
This string is used when the user navigates around the genome - it should contain both the new segment and high/low information. |
void |
setStateInformation(java.util.Properties newProperties)
With the following keys in the adapter properties, we can re-create a our internal state and start a new das-call. |
void |
validateStateInformation()
|
| 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, removeProgressListener |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public DAS2Adapter()
| Method Detail |
|---|
public DAS2Request getDASServer()
public void setDASServer(DAS2Request newValue)
public void init()
AbstractApolloAdapter
init in interface org.bdgp.io.DataAdapterinit in class AbstractApolloAdapterpublic DASDsn getDSN()
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 void setInput(java.lang.String filename)
AbstractApolloAdapter
setInput in interface ApolloDataAdapterIsetInput in class AbstractApolloAdapterpublic java.lang.String getInput()
AbstractApolloAdapter
getInput in interface ApolloDataAdapterIgetInput in class AbstractApolloAdapterpublic void setDataInput(DataInput dataInput)
setDataInput in interface ApolloDataAdapterIsetDataInput in class AbstractApolloAdapterpublic org.bdgp.io.IOOperation[] getSupportedOperations()
org.bdgp.io.DataAdapter
public org.bdgp.io.DataAdapterUI getUI(org.bdgp.io.IOOperation op)
org.bdgp.io.VisualDataAdapter
public void setRegion(java.lang.String region)
throws ApolloAdapterException
setRegion in interface ApolloDataAdapterIsetRegion in class AbstractApolloAdapterApolloAdapterExceptionpublic java.util.Properties getStateInformation()
getStateInformation in interface ApolloDataAdapterIgetStateInformation in class AbstractApolloAdapterpublic void setStateInformation(java.util.Properties newProperties)
With the following keys in the adapter properties, we can re-create a our internal state and start a new das-call.
setStateInformation in interface ApolloDataAdapterIsetStateInformation in class AbstractApolloAdapter
public CurationSet getCurationSet()
throws ApolloAdapterException
ApolloDataAdapterI
getCurationSet in interface ApolloDataAdapterIgetCurationSet in class AbstractApolloAdapterApolloAdapterException
public StrandedFeatureSetI getAnalysisRegion(CurationSet curation)
throws ApolloAdapterException
Make a call to the chosen DSN, passing in the chosen segment/range into a das "features" command. Parse the result into a nested heirarchy of FeatureSets.
Level 1 - StrandedFeatureSet. Common parent to all lower level sets
Level 2 - FeatureSets keyed by Method Name and Feature Type
Level 3 - FeatureSets for the parent Method and Type, keyed by GroupId, containing max score within group, and having handles to aligned sequences
Level 4 - FeaturePairs for the parent Group, containing start, end, target start, target end.
ApolloAdapterException
public FeatureSetI getAnnotatedRegion()
throws ApolloAdapterException
ApolloAdapterException
public SequenceI getSequence(java.lang.String id)
throws ApolloAdapterException
ApolloDataAdapterI
getSequence in interface ApolloDataAdapterIgetSequence in class AbstractApolloAdapterApolloAdapterException
public SequenceI getSequence(DbXref dbxref)
throws ApolloAdapterException
The dbxref passed into this argument is only checked to make sure that the the IdValue it contains is the same as the Id for the DASSegment that this adapter is poised on. The range etc passed into the lazy sequence are determined by the Segment that this adapter already has stored on it.
Note carefully: the sequence should NOT be fetched from the DASServer and DASDSN set on this adapter: that Server/DSN may not be a reference server. Instead, we must to go to the server and DSN referenced by the 'MapMaster' - this points to the URL of the reference server, which will have the raw sequence.
3/2006: Not currently used
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 java.lang.String getRawAnalysisResults(java.lang.String id)
throws ApolloAdapterException
getRawAnalysisResults in interface ApolloDataAdapterIgetRawAnalysisResults in class AbstractApolloAdapterApolloAdapterExceptionpublic void clearStateInformation()
AbstractApolloAdapter
clearStateInformation in class AbstractApolloAdapterpublic void validateStateInformation()
public void commitChanges(CurationSet curation)
commitChanges in interface ApolloDataAdapterIcommitChanges in class AbstractApolloAdapterpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||