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.
SeqSimilaritySearchSubHitSeqSimilaritySearchSubHit.ByScoreComparator, SeqSimilaritySearchSubHit.BySubjectStartComparatorAnnotatable.AnnotationForwarder| Modifier and Type | Field and Description |
|---|---|
protected ChangeForwarder |
annotationForwarder
Deprecated.
|
byScore, bySubjectStart, QUERY_LABELANNOTATION| 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, removeChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerprotected 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()
SeqSimilaritySearchSubHitgetScore in interface SeqSimilaritySearchSubHitpublic double getPValue()
SeqSimilaritySearchSubHitgetPValue in interface SeqSimilaritySearchSubHitpublic double getEValue()
SeqSimilaritySearchSubHitgetEValue in interface SeqSimilaritySearchSubHitpublic int getQueryStart()
SeqSimilaritySearchSubHitgetQueryStart in interface SeqSimilaritySearchSubHitint.public int getQueryEnd()
SeqSimilaritySearchSubHitgetQueryEnd in interface SeqSimilaritySearchSubHitint.public StrandedFeature.Strand getQueryStrand()
SeqSimilaritySearchSubHitgetQueryStrand in interface SeqSimilaritySearchSubHitStrand.public int getSubjectStart()
SeqSimilaritySearchSubHitgetSubjectStart in interface SeqSimilaritySearchSubHitint.public int getSubjectEnd()
SeqSimilaritySearchSubHitgetSubjectEnd in interface SeqSimilaritySearchSubHitint.public StrandedFeature.Strand getSubjectStrand()
SeqSimilaritySearchSubHitgetSubjectStrand in interface SeqSimilaritySearchSubHitStrand.public Alignment getAlignment()
SeqSimilaritySearchSubHitgetAlignment in interface SeqSimilaritySearchSubHitpublic Annotation getAnnotation()
AnnotatablegetAnnotation in interface Annotatableprotected 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 AbstractChangeableCopyright © 2020 BioJava. All rights reserved.