public interface StrandedFeature extends Feature
Strandedness only applies to some types of sequence, such as DNA. Any
implementation should blow chunks to avoid being added to a sequence for
which strand is a foreign concept.
Strand is intrinsicly part of all RichFeatures
We strongly recommend using this interface.
RichFeature
Modifier and Type | Interface and Description |
---|---|
static class |
StrandedFeature.Strand
Class to represent the 'strandedness' of a feature.
|
static class |
StrandedFeature.Template
Template class for parameterizing the creation of a new
StrandedFeature . |
Feature.ByLocationComparator
FeatureHolder.EmptyFeatureHolder
Annotatable.AnnotationForwarder
Modifier and Type | Field and Description |
---|---|
static StrandedFeature.Strand |
NEGATIVE
Flag to indicate that a feature is on the negative strand.
|
static StrandedFeature.Strand |
POSITIVE
Flag to indicate that a feature is on the positive strand.
|
static ChangeType |
STRAND
The strand of this feature is being altered.
|
static StrandedFeature.Strand |
UNKNOWN
Flag to indicate that a feature has an unknown strand.
|
byLocationOrder, LOCATION, PROPERTY_DATA_KEY, SOURCE, SOURCETERM, TYPE, TYPETERM
EMPTY_FEATURE_HOLDER, FEATURES, SCHEMA
ANNOTATION
Modifier and Type | Method and Description |
---|---|
StrandedFeature.Strand |
getStrand()
Retrieve the strand that this feature lies upon.
|
SymbolList |
getSymbols()
Return a list of symbols that are contained in this feature.
|
void |
setStrand(StrandedFeature.Strand strand)
Set the strand that this feature lies upon.
|
features, getLocation, getParent, getSequence, getSource, getSourceTerm, getType, getTypeTerm, makeTemplate, setLocation, setSource, setSourceTerm, setType, setTypeTerm
containsFeature, countFeatures, createFeature, filter, filter, getSchema, removeFeature
getAnnotation
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
static final ChangeType STRAND
static final StrandedFeature.Strand POSITIVE
static final StrandedFeature.Strand NEGATIVE
static final StrandedFeature.Strand UNKNOWN
StrandedFeature.Strand getStrand()
This will be one of StrandedFeature.POSITIVE or NEGATIVE.
void setStrand(StrandedFeature.Strand strand) throws ChangeVetoException
This will be one of StrandedFeature.POSITIVE or NEGATIVE.
strand
- a Strand
.ChangeVetoException
- if the strand may not be
changed.SymbolList getSymbols()
The symbols may not be contiguous in the original sequence, but they will be concatenated together in the resulting SymbolList.
The order of the Symbols within the resulting symbol list will be according to the concept of ordering within the location object.
If the feature is on the negative strand then the SymbolList will be reverse-complemented as appropriate.
getSymbols
in interface Feature
Copyright © 2014 BioJava. All rights reserved.