public abstract class AbstractRichSequenceDB extends AbstractBioEntryDB implements RichSequenceDB
BIOENTRYSSEQUENCES| Constructor and Description |
|---|
AbstractRichSequenceDB() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBioEntry(BioEntry seq)
Adds a sequence to the database.
|
void |
addRichSequence(RichSequence seq)
Adds a sequence to the database.
|
void |
addSequence(Sequence seq)
Adds a sequence to the database.
|
FeatureHolder |
filter(FeatureFilter ff)
Query features attached to all sequences in this database.
|
BioEntry |
getBioEntry(String id)
Retrieve a single BioEntry by its id.
|
BioEntryIterator |
getBioEntryIterator()
Returns a BioEntryIterator over all BioEntrys in the database.
|
BioEntryDB |
getBioEntrys(Set ids)
Retrieve multiple BioEntry by their ids.
|
BioEntryDB |
getBioEntrys(Set ids,
BioEntryDB db)
Retrieve multiple BioEntry into a specific sequence database.
|
RichSequenceIterator |
getRichSequenceIterator()
Returns a RichSequenceIterator over all sequences in the database.
|
Sequence |
getSequence(String id)
Retrieve a single sequence by its id.
|
void |
removeBioEntry(String id)
Remove the BioEntry associated with an ID from the database.
|
void |
removeRichSequence(String id)
Remove the RichSequence associated with an ID from the database.
|
void |
removeSequence(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, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitidsidsgetRichSequence, getRichSequences, getRichSequencesgetNamegetNameaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic AbstractRichSequenceDB()
public Sequence getSequence(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 BioEntry getBioEntry(String id) throws BioException, IllegalIDException
BioEntryDBLitegetBioEntry in interface BioEntryDBLiteid - the id to retrieve byIllegalIDException - if the database doesn't know about the idBioException - if there was a failure in retrieving the BioEntrypublic BioEntryDB getBioEntrys(Set ids) throws BioException, IllegalIDException
BioEntryDBLitegetBioEntrys in interface BioEntryDBLiteids - a set of ids to retrieve byIllegalIDException - if the database doesn't know about the idBioExceptionpublic BioEntryDB getBioEntrys(Set ids, BioEntryDB db) throws BioException, IllegalIDException
BioEntryDBLitegetBioEntrys in interface BioEntryDBLiteids - a set of ids to retrieve bydb - a database to load the seqs intoIllegalIDException - if the database doesn't know about the idBioExceptionpublic void addSequence(Sequence seq) throws IllegalIDException, BioException, ChangeVetoException
SequenceDBLiteaddSequence in interface SequenceDBLiteseq - the Sequence to addIllegalIDException - if a uniqe ID could not be generated for seqBioException - if something goes wrong with adding the sequenceChangeVetoException - if either the database does not allow
sequences to be added or the modification was vetoedpublic void removeSequence(String id) throws IllegalIDException, BioException, ChangeVetoException
SequenceDBLiteremoveSequence in interface SequenceDBLiteid - the ID of the sequence to removeIllegalIDException - if there is no sequence for the IDBioException - if something failed while removing the sequence for
that IDChangeVetoException - if either the database does not allow
sequences to be removed or the modification was vetoedpublic void addBioEntry(BioEntry seq) throws IllegalIDException, BioException, ChangeVetoException
BioEntryDBLiteaddBioEntry in interface BioEntryDBLiteaddBioEntry in class AbstractBioEntryDBseq - the BioEntry to addIllegalIDException - if a uniqe ID could not be generated for BioEntryBioException - if something goes wrong with adding the BioEntryChangeVetoException - if either the database does not allow
BioEntrys to be added or the modification was vetoedpublic void removeBioEntry(String id) throws IllegalIDException, BioException, ChangeVetoException
BioEntryDBLiteremoveBioEntry in interface BioEntryDBLiteremoveBioEntry in class AbstractBioEntryDBid - the ID of the BioEntry to removeIllegalIDException - if there is no BioEntry for the IDBioException - if something failed while removing the BioEntry for
that IDChangeVetoException - if either the database does not allow
BioEntrys to be removed or the modification was vetoedpublic void addRichSequence(RichSequence seq) throws IllegalIDException, BioException, ChangeVetoException
RichSequenceDBLiteaddRichSequence in interface RichSequenceDBLiteseq - the RichSequence to addIllegalIDException - if a uniqe ID could not be generated for RichSequenceBioException - if something goes wrong with adding the RichSequenceChangeVetoException - if either the database does not allow
RichSequences to be added or the modification was vetoedpublic void removeRichSequence(String id) throws IllegalIDException, BioException, ChangeVetoException
RichSequenceDBLiteremoveRichSequence in interface RichSequenceDBLiteid - the ID of the RichSequence to removeIllegalIDException - if there is no RichSequence for the IDBioException - if something failed while removing the RichSequence for
that IDChangeVetoException - if either the database does not allow
RichSequences to be removed or the modification was vetoedpublic SequenceIterator sequenceIterator()
RichSequenceDBsequenceIterator in interface SequenceDBsequenceIterator in interface RichSequenceDBpublic BioEntryIterator getBioEntryIterator()
BioEntryDBgetBioEntryIterator in interface BioEntryDBgetBioEntryIterator in class AbstractBioEntryDBpublic RichSequenceIterator getRichSequenceIterator()
RichSequenceDBgetRichSequenceIterator in interface RichSequenceDBpublic FeatureHolder filter(FeatureFilter ff)
SequenceDBfilter to all
sequences then merging the results.filter in interface SequenceDBff - a FeatureFilter.Copyright © 2020 BioJava. All rights reserved.