public class SimpleSimilarityPairFeature extends SimpleStrandedFeature implements SimilarityPairFeature
SimpleSimilarityPairFeature
represents a similarity
between a query sequence and a subject sequence as produced by a
search program.SimilarityPairFeature.EmptyPairwiseAlignment, SimilarityPairFeature.Template
StrandedFeature.Strand
Feature.ByLocationComparator
FeatureHolder.EmptyFeatureHolder
Annotatable.AnnotationForwarder
EMPTY_PAIRWISE, QUERY_LABEL, SIBLING, SUBJECT_LABEL
NEGATIVE, POSITIVE, STRAND, UNKNOWN
byLocationOrder, LOCATION, PROPERTY_DATA_KEY, SOURCE, SOURCETERM, TYPE, TYPETERM
EMPTY_FEATURE_HOLDER, FEATURES, SCHEMA
ANNOTATION
Constructor and Description |
---|
SimpleSimilarityPairFeature(Sequence sourceSeq,
FeatureHolder parent,
SimilarityPairFeature.Template template)
Creates a new
SimpleSimilarityPairFeature . |
Modifier and Type | Method and Description |
---|---|
protected void |
fillTemplate(SimilarityPairFeature.Template ft) |
Alignment |
getAlignment()
getAlignment returns the alignment between the two
features. |
double |
getScore()
getScore returns the alignment score. |
SimilarityPairFeature |
getSibling()
getSibling returns the sibling feature of the
pair. |
Feature.Template |
makeTemplate()
Create a new Template that could be used to generate a feature identical
to this one.
|
void |
setSibling(SimilarityPairFeature sibling)
setSibling sets the sibling feature of the
pair. |
String |
toString() |
fillTemplate, getStrand, getSymbols, setStrand
containsFeature, countFeatures, createFeature, equals, featureHolderAllocated, features, fillTemplate, filter, filter, getAnnotation, getChangeSupport, getFeatureHolder, getLocation, getParent, getSchema, getSequence, getSource, getSourceTerm, getType, getTypeTerm, hashCode, realizeFeature, removeFeature, setLocation, setSource, setSourceTerm, setType, setTypeTerm
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getStrand, getSymbols, setStrand
features, getLocation, getParent, getSequence, getSource, getSourceTerm, getType, getTypeTerm, setLocation, setSource, setSourceTerm, setType, setTypeTerm
containsFeature, countFeatures, createFeature, filter, filter, getSchema, removeFeature
getAnnotation
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public SimpleSimilarityPairFeature(Sequence sourceSeq, FeatureHolder parent, SimilarityPairFeature.Template template) throws IllegalAlphabetException
SimpleSimilarityPairFeature
.sourceSeq
- a Sequence
.parent
- a FeatureHolder
.template
- a SimilarityPairFeature.Template
.IllegalAlphabetException
public SimilarityPairFeature getSibling()
getSibling
returns the sibling feature of the
pair.getSibling
in interface SimilarityPairFeature
Feature
.public void setSibling(SimilarityPairFeature sibling) throws ChangeVetoException
SimilarityPairFeature
setSibling
sets the sibling feature of the
pair. This is used to set the reciprocal
SimilarityPairFeature
as both cannot be set using
the Template
.setSibling
in interface SimilarityPairFeature
ChangeVetoException
public Alignment getAlignment()
getAlignment
returns the alignment between the two
features.getAlignment
in interface SimilarityPairFeature
Alignment
.public double getScore()
getScore
returns the alignment score.getScore
in interface SimilarityPairFeature
double
.public Feature.Template makeTemplate()
Feature
makeTemplate
in interface Feature
makeTemplate
in class SimpleStrandedFeature
protected void fillTemplate(SimilarityPairFeature.Template ft)
public String toString()
toString
in class SimpleStrandedFeature
Copyright © 2014 BioJava. All rights reserved.