|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.utils.AbstractChangeable
org.biojava.bio.search.SimpleSeqSimilaritySearchSubHit
public class SimpleSeqSimilaritySearchSubHit
SimpleSeqSimilaritySearchSubHit objects represent
sub-hits which make up a hit. In the case of Blast these correspond
to HSPs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojava.bio.search.SeqSimilaritySearchSubHit |
|---|
SeqSimilaritySearchSubHit.ByScoreComparator, SeqSimilaritySearchSubHit.BySubjectStartComparator |
| Nested classes/interfaces inherited from interface org.biojava.bio.Annotatable |
|---|
Annotatable.AnnotationForwarder |
| Field Summary | |
|---|---|
protected ChangeForwarder |
annotationForwarder
|
| Fields inherited from interface org.biojava.bio.search.SeqSimilaritySearchSubHit |
|---|
byScore, bySubjectStart, QUERY_LABEL |
| Fields inherited from interface org.biojava.bio.Annotatable |
|---|
ANNOTATION |
| Constructor Summary | |
|---|---|
SimpleSeqSimilaritySearchSubHit(double score,
double eValue,
double pValue,
int queryStart,
int queryEnd,
StrandedFeature.Strand queryStrand,
int subjectStart,
int subjectEnd,
StrandedFeature.Strand subjectStrand,
Alignment alignment,
Annotation annotation)
Creates a new SimpleSeqSimilaritySearchSubHit
object. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
Alignment |
getAlignment()
Return an alignment of (possibly part of) the query sequence against (possibly part of) this hit sequence. |
Annotation |
getAnnotation()
getAnnotation returns the Annotation associated
with this sub-hit. |
protected ChangeSupport |
getChangeSupport(ChangeType ct)
Called to retrieve the ChangeSupport for this object. |
double |
getEValue()
Return the E-value of this sub-hit. |
double |
getPValue()
Return the P-value of this sub-hit. |
int |
getQueryEnd()
Return the end position of the sub-hit in the query sequence. |
int |
getQueryStart()
Return the start position of the sub-hit in the query sequence. |
StrandedFeature.Strand |
getQueryStrand()
Return the strand of the sub-hit with respect to the query sequence. |
double |
getScore()
Return the score of this sub-hit in the units defined by the search algorithm. |
int |
getSubjectEnd()
Return the start position of the sub-hit in the subject sequence. |
int |
getSubjectStart()
Return the start position of the sub-hit in the subject sequence. |
StrandedFeature.Strand |
getSubjectStrand()
Return the strand of the sub-hit with respect to the subject sequence. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class org.biojava.utils.AbstractChangeable |
|---|
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.biojava.utils.Changeable |
|---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Field Detail |
|---|
protected transient ChangeForwarder annotationForwarder
| Constructor Detail |
|---|
public SimpleSeqSimilaritySearchSubHit(double score,
double eValue,
double pValue,
int queryStart,
int queryEnd,
StrandedFeature.Strand queryStrand,
int subjectStart,
int subjectEnd,
StrandedFeature.Strand subjectStrand,
Alignment alignment,
Annotation annotation)
SimpleSeqSimilaritySearchSubHit
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.| Method Detail |
|---|
public double getScore()
SeqSimilaritySearchSubHit
getScore in interface SeqSimilaritySearchSubHitpublic double getPValue()
SeqSimilaritySearchSubHit
getPValue in interface SeqSimilaritySearchSubHitpublic double getEValue()
SeqSimilaritySearchSubHit
getEValue in interface SeqSimilaritySearchSubHitpublic int getQueryStart()
SeqSimilaritySearchSubHit
getQueryStart in interface SeqSimilaritySearchSubHitint.public int getQueryEnd()
SeqSimilaritySearchSubHit
getQueryEnd in interface SeqSimilaritySearchSubHitint.public StrandedFeature.Strand getQueryStrand()
SeqSimilaritySearchSubHit
getQueryStrand in interface SeqSimilaritySearchSubHitStrand.public int getSubjectStart()
SeqSimilaritySearchSubHit
getSubjectStart in interface SeqSimilaritySearchSubHitint.public int getSubjectEnd()
SeqSimilaritySearchSubHit
getSubjectEnd in interface SeqSimilaritySearchSubHitint.public StrandedFeature.Strand getSubjectStrand()
SeqSimilaritySearchSubHit
getSubjectStrand in interface SeqSimilaritySearchSubHitStrand.public Alignment getAlignment()
SeqSimilaritySearchSubHit
getAlignment in interface SeqSimilaritySearchSubHitpublic Annotation getAnnotation()
getAnnotation returns the Annotation associated
with this sub-hit.
getAnnotation in interface AnnotatableAnnotation.public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectprotected 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||