public class DASSequenceDB extends Unchangeable implements SequenceDB
Collection of sequences retrieved from the DAS network.
The DAS-specific parts of this API are still subject to change.
SEQUENCES| Constructor and Description |
|---|
DASSequenceDB(java.net.URL dataSourceURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSequence(Sequence seq)
Adds a sequence to the database.
|
SequenceDBLite |
allEntryPointsDB() |
FeatureHolder |
filter(FeatureFilter ff)
Query features attached to all sequences in this database.
|
java.lang.String |
getName()
Get the name of this sequence database.
|
Sequence |
getSequence(java.lang.String id)
Retrieve a single sequence by its id.
|
java.net.URL |
getURL()
Return the URL of the reference server for this database.
|
java.util.Set |
ids()
Get an immutable set of all of the IDs in the database.
|
void |
removeSequence(java.lang.String id)
Remove the sequence associated with an ID from the database.
|
SequenceIterator |
sequenceIterator()
Returns a SequenceIterator over all sequences in the database.
|
addChangeListener, addChangeListener, addForwarder, getForwarders, getListeners, isUnchanging, removeChangeListener, removeChangeListener, removeForwarderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic DASSequenceDB(java.net.URL dataSourceURL)
throws BioException
BioExceptionpublic FeatureHolder filter(FeatureFilter ff)
SequenceDBfilter to all
sequences then merging the results.filter in interface SequenceDBff - a FeatureFilter.public SequenceDBLite allEntryPointsDB()
public java.net.URL getURL()
public java.lang.String getName()
SequenceDBLitegetName in interface SequenceDBLitepublic Sequence getSequence(java.lang.String id) throws BioException, IllegalIDException
SequenceDBLitegetSequence in interface SequenceDBLiteid - the id to retrieve byIllegalIDException - if the database doesn't know about the idBioException - if there was a failure in retrieving the sequencepublic java.util.Set ids()
SequenceDBids in interface SequenceDBpublic void addSequence(Sequence seq) throws ChangeVetoException
SequenceDBLiteaddSequence in interface SequenceDBLiteseq - the Sequence to addChangeVetoException - if either the database does not allow
sequences to be added or the modification was vetoedpublic void removeSequence(java.lang.String id)
throws ChangeVetoException
SequenceDBLiteremoveSequence in interface SequenceDBLiteid - the ID of the sequence to removeChangeVetoException - if either the database does not allow
sequences to be removed or the modification was vetoedpublic SequenceIterator sequenceIterator()
SequenceDBsequenceIterator in interface SequenceDB