public class SequenceDBSearchSubHit extends AbstractChangeable implements SeqSimilaritySearchSubHit
SequenceDBSearchSubHit
objects represent sub-hits
which make up a hit. In the case of Blast these correspond to
HSPs.
SeqSimilaritySearchSubHit
SeqSimilaritySearchSubHit.ByScoreComparator, SeqSimilaritySearchSubHit.BySubjectStartComparator
Annotatable.AnnotationForwarder
Modifier and Type | Field and Description |
---|---|
protected ChangeForwarder |
annotationForwarder
Deprecated.
|
byScore, bySubjectStart, QUERY_LABEL
ANNOTATION
Constructor and Description |
---|
SequenceDBSearchSubHit(double score,
double eValue,
double pValue,
int queryStart,
int queryEnd,
StrandedFeature.Strand queryStrand,
int subjectStart,
int subjectEnd,
StrandedFeature.Strand subjectStrand,
Alignment alignment,
Annotation annotation)
Deprecated.
Creates a new
SequenceDBSearchSubHit object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Deprecated.
|
Alignment |
getAlignment()
Deprecated.
Return an alignment of (possibly part of) the query sequence
against (possibly part of) this hit sequence.
|
Annotation |
getAnnotation()
Deprecated.
Should return the associated annotation object.
|
protected ChangeSupport |
getChangeSupport(ChangeType ct)
Deprecated.
Called to retrieve the ChangeSupport for this object.
|
double |
getEValue()
Deprecated.
Return the E-value of this sub-hit.
|
double |
getPValue()
Deprecated.
Return the P-value of this sub-hit.
|
int |
getQueryEnd()
Deprecated.
Return the end position of the sub-hit in the query sequence.
|
int |
getQueryStart()
Deprecated.
Return the start position of the sub-hit in the query sequence.
|
StrandedFeature.Strand |
getQueryStrand()
Deprecated.
Return the strand of the sub-hit with respect to the query
sequence.
|
double |
getScore()
Deprecated.
Return the score of this sub-hit in the units defined by the
search algorithm.
|
int |
getSubjectEnd()
Deprecated.
Return the start position of the sub-hit in the subject
sequence.
|
int |
getSubjectStart()
Deprecated.
Return the start position of the sub-hit in the subject
sequence.
|
StrandedFeature.Strand |
getSubjectStrand()
Deprecated.
Return the strand of the sub-hit with respect to the subject
sequence.
|
int |
hashCode()
Deprecated.
|
String |
toString()
Deprecated.
|
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
protected transient ChangeForwarder annotationForwarder
public SequenceDBSearchSubHit(double score, double eValue, double pValue, int queryStart, int queryEnd, StrandedFeature.Strand queryStrand, int subjectStart, int subjectEnd, StrandedFeature.Strand subjectStrand, Alignment alignment, Annotation annotation)
SequenceDBSearchSubHit
object.queryStart
- an int
value indicating the
start coordinate of the hit on the query sequence.queryEnd
- an int
value indicating the end
coordinate of the hit on the query sequence.queryStrand
- a Strand
object indicating the
strand of the hit with respect to the query sequence, which may
be null for protein similarities.subjectStart
- an int
value indicating the
start coordinate of the hit on the subject sequence.subjectEnd
- an int
value indicating the end
coordinate of the hit on the query sequence.subjectStrand
- a Strand
object indicating
the strand of the hit with respect to the query sequence, which
may be null for protein similarities.score
- a double
value; the score of the
subhit, which may not be NaN.eValue
- a double
the E-value of the
subhit, which may be NaN.pValue
- a double
value; the P-value of the
hit, which may be NaN.alignment
- an Alignment
object containing
the alignment described by the subhit region, which may not be
null.annotation
- an Annotation
object, which may
not be null.public double getScore()
SeqSimilaritySearchSubHit
getScore
in interface SeqSimilaritySearchSubHit
public double getPValue()
SeqSimilaritySearchSubHit
getPValue
in interface SeqSimilaritySearchSubHit
public double getEValue()
SeqSimilaritySearchSubHit
getEValue
in interface SeqSimilaritySearchSubHit
public int getQueryStart()
SeqSimilaritySearchSubHit
getQueryStart
in interface SeqSimilaritySearchSubHit
int
.public int getQueryEnd()
SeqSimilaritySearchSubHit
getQueryEnd
in interface SeqSimilaritySearchSubHit
int
.public StrandedFeature.Strand getQueryStrand()
SeqSimilaritySearchSubHit
getQueryStrand
in interface SeqSimilaritySearchSubHit
Strand
.public int getSubjectStart()
SeqSimilaritySearchSubHit
getSubjectStart
in interface SeqSimilaritySearchSubHit
int
.public int getSubjectEnd()
SeqSimilaritySearchSubHit
getSubjectEnd
in interface SeqSimilaritySearchSubHit
int
.public StrandedFeature.Strand getSubjectStrand()
SeqSimilaritySearchSubHit
getSubjectStrand
in interface SeqSimilaritySearchSubHit
Strand
.public Alignment getAlignment()
SeqSimilaritySearchSubHit
getAlignment
in interface SeqSimilaritySearchSubHit
public Annotation getAnnotation()
Annotatable
getAnnotation
in interface Annotatable
protected ChangeSupport getChangeSupport(ChangeType ct)
AbstractChangeable
Your implementation of this method should have the following structure:
It is usual for the forwarding listeners (someForwarder in this example) to
be transient and lazily instantiated. Be sure to register & unregister the
forwarder in the code that does the ChangeEvent handling in setter methods.
ChangeSupport cs = super.getChangeSupport(ct);
if(someForwarder == null && ct.isMatching(SomeInterface.SomeChangeType)) {
someForwarder = new ChangeForwarder(...
this.stateVariable.addChangeListener(someForwarder, VariableInterface.AChange);
}
return cs;
getChangeSupport
in class AbstractChangeable
Copyright © 2014 BioJava. All rights reserved.