public interface SequenceAnnotatorAn object which adds some additional information to a Sequence.
There are two approaches which can be taken to adding features to a sequence:
- Directly adding features to a Sequence which implements MutableFeatureHolder
- Creating a new Sequence object which acts as a view on an underlying Sequence, and presents extra features.
- Thomas Down
Sequence annotate(Sequence seq) throws BioException, IllegalAlphabetException, ChangeVetoExceptionReturn an annotated version of a sequence.
seq- The sequence to be annotated.
- An annotated version of
seq(may be the same object).
IllegalAlphabetException- If the sequence is over an inappropriate alphabet for the annotated method being encapsulated
BioException- if the sequence fails to be annotated
ChangeVetoException- if either the sequence doesn't allow annotation or if the change was vetoed