|
|||||||||
| 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.BaseGFFAdapter
public class BaseGFFAdapter
I'm a variant of a GFFAdapter that does NO translation of the features I read into sets of features (ie no post-processing of the data). That is, I will read features (or feature pairs) and place them into a StrandedFeatureSet, place those into a curation set, and hand out the curation set.
| 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 | |
|---|---|
BaseGFFAdapter()
|
|
BaseGFFAdapter(java.lang.String filename)
|
|
| 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)
writes the changes from a featureChangeLog to a writeable datasource. |
protected java.lang.String |
findFile(java.lang.String name)
|
StrandedFeatureSetI |
getAnalysisRegion()
|
FeatureSetI |
getAnnotatedRegion()
|
StrandedFeatureSetI |
getAnnotRegion()
|
CurationSet |
getCurationSet()
returns a saved CurationSet. |
java.lang.String |
getFilename()
Returns null if not file |
protected GFFFile |
getGFFFile()
|
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 |
getRawAnalysisResults(java.lang.String id)
|
Sequence |
getSequence()
|
SequenceI |
getSequence(DbXref dbxref)
|
SequenceI |
getSequence(DbXref dbxref,
int start,
int end)
|
SequenceI |
getSequence(java.lang.String id)
Strings for input types |
java.lang.String |
getSequenceFilename()
|
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. |
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)
|
void |
readSequence(java.lang.String file,
CurationSet curation)
|
void |
saveSequence(SequenceI seq)
|
void |
setDataInput(DataInput dataInput)
This should replace setInput. |
void |
setFilename(java.lang.String filename)
determines whether the entered 'filename' is in fact a url.If it is then retrieves the GFF file via HTTP, to a temp file, and sets fileName to this temp file. |
void |
setSequenceFilename(java.lang.String seqfile)
|
void |
setStateInformation(java.util.Properties props)
This should set StateInformation object! see StateInformation for Strings to use for keys. |
java.lang.String |
writeAnalyses(CurationSet curation)
|
java.lang.String |
writeAnalysis(FeatureSetI sf)
|
java.lang.String |
writeAnnotation(AnnotatedFeatureI sf)
|
java.lang.String |
writeAnnotations(CurationSet curation)
|
void |
writeGFF(CurationSet curation,
java.io.OutputStream os)
|
java.lang.String |
writeTranscript(Transcript trans,
boolean isa_gene)
|
| 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 BaseGFFAdapter(java.lang.String filename)
public BaseGFFAdapter()
| Method Detail |
|---|
public void init()
AbstractApolloAdapter
init in interface org.bdgp.io.DataAdapterinit 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 org.bdgp.io.DataAdapterUI getUI(org.bdgp.io.IOOperation op)
org.bdgp.io.VisualDataAdapter
public void setFilename(java.lang.String filename)
throws ApolloAdapterException
ApolloAdapterExceptionpublic java.lang.String getFilename()
AbstractApolloAdapter
getFilename in class AbstractApolloAdapterpublic void setDataInput(DataInput dataInput)
ApolloDataAdapterI
setDataInput in interface ApolloDataAdapterIsetDataInput in class AbstractApolloAdapterpublic 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
public CurationSet getCurationSet()
throws ApolloAdapterException
ApolloDataAdapterI
getCurationSet in interface ApolloDataAdapterIgetCurationSet in class AbstractApolloAdapterApolloAdapterException
protected GFFFile getGFFFile()
throws org.bdgp.io.DataAdapterException
org.bdgp.io.DataAdapterException
protected java.lang.String findFile(java.lang.String name)
throws org.bdgp.io.DataAdapterException
org.bdgp.io.DataAdapterException
public StrandedFeatureSetI getAnalysisRegion()
throws org.bdgp.io.DataAdapterException
org.bdgp.io.DataAdapterExceptionpublic StrandedFeatureSetI getAnnotRegion()
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public FeatureSetI getAnnotatedRegion()
throws org.bdgp.io.DataAdapterException
org.bdgp.io.DataAdapterException
public SequenceI getSequence(java.lang.String id)
throws ApolloAdapterException
ApolloDataAdapterI
getSequence in interface ApolloDataAdapterIgetSequence in class AbstractApolloAdapterApolloAdapterException
public SequenceI getSequence(DbXref dbxref)
throws ApolloAdapterException
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 AbstractApolloAdapterApolloAdapterException
public void commitChanges(CurationSet curation)
throws ApolloAdapterException
ApolloDataAdapterI
commitChanges in interface ApolloDataAdapterIcommitChanges in class AbstractApolloAdapterApolloAdapterException
public void writeGFF(CurationSet curation,
java.io.OutputStream os)
public java.lang.String writeAnnotations(CurationSet curation)
public java.lang.String writeAnnotation(AnnotatedFeatureI sf)
public java.lang.String writeTranscript(Transcript trans,
boolean isa_gene)
public java.lang.String writeAnalyses(CurationSet curation)
public java.lang.String writeAnalysis(FeatureSetI sf)
public Sequence getSequence()
public void readSequence(java.lang.String file,
CurationSet curation)
throws org.bdgp.io.DataAdapterException
org.bdgp.io.DataAdapterExceptionpublic void setSequenceFilename(java.lang.String seqfile)
public java.lang.String getSequenceFilename()
public void saveSequence(SequenceI seq)
throws org.bdgp.io.DataAdapterException
org.bdgp.io.DataAdapterExceptionpublic void clearStateInformation()
AbstractApolloAdapter
clearStateInformation in class AbstractApolloAdapter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||