public class AnnotatedSequenceDB extends AbstractSequenceDB implements SequenceDB, Serializable
SEQUENCES
Constructor and Description |
---|
AnnotatedSequenceDB(SequenceDB parent,
SequenceAnnotator a) |
Modifier and Type | Method and Description |
---|---|
protected Sequence |
doAnnotation(Sequence seq)
Apply the annotation to a sequence.
|
String |
getName()
Get the name of this sequence database.
|
SequenceDB |
getParent()
Get the original sequenceDB from this annotated sequenceDB.
|
Sequence |
getSequence(String id)
Retrieve a single sequence by its id.
|
Set |
ids()
Get an immutable set of all of the IDs in the database.
|
SequenceIterator |
sequenceIterator()
Returns a SequenceIterator over all sequences in the database.
|
addSequence, filter, removeSequence
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
filter
addSequence, removeSequence
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public AnnotatedSequenceDB(SequenceDB parent, SequenceAnnotator a)
public SequenceDB getParent()
public String getName()
SequenceDBLite
getName
in interface SequenceDBLite
public Sequence getSequence(String id) throws BioException
SequenceDBLite
getSequence
in interface SequenceDBLite
id
- the id to retrieve byIllegalIDException
- if the database doesn't know about the idBioException
- if there was a failure in retrieving the sequencepublic Set ids()
SequenceDB
ids
in interface SequenceDB
public SequenceIterator sequenceIterator()
SequenceDB
sequenceIterator
in interface SequenceDB
sequenceIterator
in class AbstractSequenceDB
protected Sequence doAnnotation(Sequence seq) throws BioException
seq
- the sequence to annotate.BioException
Copyright © 2014 BioJava. All rights reserved.