public interface RichSequence extends BioEntry, Sequence
Modifier and Type | Interface and Description |
---|---|
static class |
RichSequence.IOTools
A set of convenience methods for handling common file formats.
|
static class |
RichSequence.Terms
Stores a number of useful terms used across many sequence formats for
consistency's sake.
|
static class |
RichSequence.Tools
Some useful tools for working with RichSequence objects.
|
Annotatable.AnnotationForwarder
FeatureHolder.EmptyFeatureHolder
Modifier and Type | Field and Description |
---|---|
static ChangeType |
CIRCULAR |
static ChangeType |
SYMLISTVERSION |
COMMENT, DESCRIPTION, DIVISION, IDENTIFIER, RANKEDCROSSREF, RANKEDDOCREF, RELATIONS, SEQVERSION, TAXON
ANNOTATION
EDIT, EMPTY_LIST
EMPTY_FEATURE_HOLDER, FEATURES, SCHEMA
Modifier and Type | Method and Description |
---|---|
boolean |
getCircular()
Is the sequence circular?
|
Set<Feature> |
getFeatureSet()
The features for this sequence.
|
SymbolList |
getInternalSymbolList()
A special function that returns the SymbolList that this RichSequence is
based around.
|
Double |
getSeqVersion()
The version of the associated symbol list.
|
void |
setCircular(boolean circular)
Circularises the
Sequence . |
void |
setFeatureSet(Set<Feature> features)
Sets the features of this sequence.
|
void |
setSeqVersion(Double seqVersion)
Sets the version of the associated symbol list.
|
addComment, addRankedDocRef, addRelationship, getAccession, getComments, getDescription, getDivision, getIdentifier, getName, getNamespace, getRankedDocRefs, getRelationships, getTaxon, getVersion, removeComment, removeRankedDocRef, removeRelationship, setDescription, setDivision, setIdentifier, setTaxon
getNoteSet, getRichAnnotation, setNoteSet
getAnnotation
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
addRankedCrossRef, getRankedCrossRefs, removeRankedCrossRef, setRankedCrossRefs
compareTo
edit, getAlphabet, iterator, length, seqString, subList, subStr, symbolAt, toList
containsFeature, countFeatures, createFeature, features, filter, filter, getSchema, removeFeature
static final ChangeType SYMLISTVERSION
static final ChangeType CIRCULAR
Double getSeqVersion()
void setSeqVersion(Double seqVersion) throws ChangeVetoException
seqVersion
- the version to set.ChangeVetoException
- if it doesn't want to change.Set<Feature> getFeatureSet()
void setFeatureSet(Set<Feature> features) throws ChangeVetoException
features
- the features to assign to this sequence, replacing all others.
Must be a set of RichFeature objects.ChangeVetoException
- if they could not be assigned.void setCircular(boolean circular) throws ChangeVetoException
Sequence
. The circular length can then be
said to be the length of the sequence itself.circular
- set to true if you want it to be circularChangeVetoException
- if the change is blocked. Some implementations may choose not
to support circularisation and should throw an exception
here. Some implementations may only support this method for
certain Alphabets.boolean getCircular()
SymbolList getInternalSymbolList()
Copyright © 2014 BioJava. All rights reserved.