|
|||||||||
| 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.gamexml.GAMEAdapter
public class GAMEAdapter
Reader for GAME XML files. WARNING -- AElfred (and other SAX drivers) _may_ break large stretches of unmarked content into smaller chunks and call characters() for each smaller chunk CURRENT IMPLEMENTATION DOES NOT DEAL WITH THIS COULD CAUSE PROBLEM WHEN READING IN SEQUENCE RESIDUES haven't seen a problem yet though -- GAH 6-15-98 GAMEAdapter is presently not a singleton. There is separate instances for synteny and non-synteny/one-species. This may change in future.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
|
protected boolean |
NO_GUI
|
| 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 | |
|---|---|
GAMEAdapter()
|
|
GAMEAdapter(DataInputType inputType,
java.lang.String input)
|
|
GAMEAdapter(DataInputType inputType,
java.lang.String input,
boolean noGUI)
|
|
| Method Summary | |
|---|---|
java.lang.Boolean |
addToCurationSet()
Called if user is layering additional GAME data on top of whatever's already been loaded |
void |
commitChanges(CurationSet curation)
writes the changes from a featureChangeLog to a writeable datasource. |
void |
commitChanges(CurationSet curation,
boolean saveAnnots,
boolean saveResults)
Writes XML If the input type is not FILE, prompts user for a file to save to. |
java.lang.String |
fillInDatabase(java.lang.String urlString)
Replace %DATABASE% field with selected database. |
java.lang.String |
fillInPadding(java.lang.String urlString)
Replace %PadLeft/Right% with pad ints |
CurationSet |
getCurationSet()
from ApolloDataAdapterI interface. |
java.lang.String |
getDatabase()
|
DataInput |
getDataInput()
if file starts with http: then its really an url so correct the type bug fix for being able to load urls from file adapter and with -x |
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()
org.bdgp.io.DataAdapter method |
org.bdgp.io.DataAdapterUI |
getUI(org.bdgp.io.IOOperation op)
Returns a user interface for the requested IOOperation. |
boolean |
hasLinkData()
Returns true as game data contains link data that can be used by synteny |
void |
init()
From org.bdgp.io.DataAdapter interface. |
static void |
main(java.lang.String[] args)
Tests all the input types - can enter filename as arg |
java.net.URL |
makeUrlFromString(java.lang.String urlString)
make URL from urlString, replace %DATABASE% with selected database |
void |
setName(java.lang.String nameForReading)
|
void |
setOriginalFilename(java.lang.String file)
Save original file name so that if we save the data we can access the header info from the original file; and also so we can save the file name as a comment. |
void |
setPadLeft(int padLeft)
Request to "pad" the input padLeft basepairs to the left(5' forward strand) - Could do this in AbstractApolloAdapter but only game adapter needs this now |
void |
setPadRight(int padRight)
Request to "pad" the input padRight basepairs to the right(3' forward strand) |
void |
setRegion(SequenceI seq)
|
static void |
setSeqDescription(SequenceI seq,
java.lang.String description,
java.lang.String seq_id)
Given a FASTA-style header line, set the sequence's description and extract the date. |
void |
setStateInformation(java.util.Properties props)
DataLoader calls this. |
| 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
protected boolean NO_GUI
| Constructor Detail |
|---|
public GAMEAdapter()
public GAMEAdapter(DataInputType inputType,
java.lang.String input)
public GAMEAdapter(DataInputType inputType,
java.lang.String input,
boolean noGUI)
| Method Detail |
|---|
public void init()
AbstractApolloAdapter
init in interface org.bdgp.io.DataAdapterinit in class AbstractApolloAdapterpublic java.lang.String getType()
getType in interface org.bdgp.io.DataAdaptergetType in class AbstractApolloAdapterpublic org.bdgp.io.IOOperation[] getSupportedOperations()
org.bdgp.io.DataAdapter
public void setName(java.lang.String nameForReading)
setName in class AbstractApolloAdapterpublic org.bdgp.io.DataAdapterUI getUI(org.bdgp.io.IOOperation op)
org.bdgp.io.VisualDataAdapter
public void setPadLeft(int padLeft)
setPadLeft in interface ApolloDataAdapterIsetPadLeft in class AbstractApolloAdapterpublic void setPadRight(int padRight)
setPadRight in interface ApolloDataAdapterIsetPadRight in class AbstractApolloAdapterpublic java.util.Properties getStateInformation()
ApolloDataAdapterI
getStateInformation in interface ApolloDataAdapterIgetStateInformation in class AbstractApolloAdapterpublic void setStateInformation(java.util.Properties props)
setStateInformation in interface ApolloDataAdapterIsetStateInformation in class AbstractApolloAdapter
public void setRegion(SequenceI seq)
throws ApolloAdapterException
ApolloAdapterExceptionpublic boolean hasLinkData()
hasLinkData in interface ApolloDataAdapterIhasLinkData in class AbstractApolloAdapterpublic void setOriginalFilename(java.lang.String file)
public static void main(java.lang.String[] args)
throws ApolloAdapterException
ApolloAdapterExceptionpublic void commitChanges(CurationSet curation)
ApolloDataAdapterI
commitChanges in interface ApolloDataAdapterIcommitChanges in class AbstractApolloAdapter
public void commitChanges(CurationSet curation,
boolean saveAnnots,
boolean saveResults)
commitChanges in class AbstractApolloAdapterpublic DataInput getDataInput()
getDataInput in class AbstractApolloAdapter
public CurationSet getCurationSet()
throws ApolloAdapterException
getCurationSet in interface ApolloDataAdapterIgetCurationSet in class AbstractApolloAdapterApolloAdapterException
public java.lang.Boolean addToCurationSet()
throws ApolloAdapterException
addToCurationSet in interface ApolloDataAdapterIaddToCurationSet in class AbstractApolloAdapterApolloAdapterExceptionpublic java.net.URL makeUrlFromString(java.lang.String urlString)
public java.lang.String fillInDatabase(java.lang.String urlString)
public java.lang.String getDatabase()
getDatabase in class AbstractApolloAdapterpublic java.lang.String fillInPadding(java.lang.String urlString)
public static void setSeqDescription(SequenceI seq,
java.lang.String description,
java.lang.String seq_id)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||