S - each element of the alignment Profile is of type SC - each element of an AlignedSequence is a Compound of type Cpublic interface SequencePair<S extends Sequence<C>,C extends Compound> extends Profile<S,C>
Profile.StringFormat| Modifier and Type | Method and Description |
|---|---|
C |
getCompoundInQueryAt(int alignmentIndex)
Returns the
Compound in query sequence at given column index in alignment. |
C |
getCompoundInTargetAt(int alignmentIndex)
Returns the
Compound in target sequence at given column index in alignment. |
int |
getIndexInQueryAt(int alignmentIndex)
Returns the query index corresponding to a given alignment column.
|
int |
getIndexInQueryForTargetAt(int targetIndex)
Returns the query index corresponding to a given target index.
|
int |
getIndexInTargetAt(int alignmentIndex)
Returns the target index corresponding to a given alignment column.
|
int |
getIndexInTargetForQueryAt(int queryIndex)
Returns the target index corresponding to a given query index.
|
int |
getNumIdenticals()
Returns the number of indices for which both the query and target sequences have an identical
Compound. |
int |
getNumSimilars()
Returns the number of indices for which both the query and target sequences have a similar
Compound. |
double |
getPercentageOfIdentity(boolean countGaps)
Returns the percentage of identity between the two sequences in the alignment as a fraction between 0 and 1.
|
AlignedSequence<S,C> |
getQuery()
Returns the first
AlignedSequence of the pair. |
AlignedSequence<S,C> |
getTarget()
Returns the second
AlignedSequence of the pair. |
getAlignedSequence, getAlignedSequence, getAlignedSequences, getAlignedSequences, getAlignedSequences, getCompoundAt, getCompoundAt, getCompoundCountsAt, getCompoundCountsAt, getCompoundsAt, getCompoundSet, getCompoundWeightsAt, getCompoundWeightsAt, getIndexOf, getIndicesAt, getLastIndexOf, getLength, getOriginalSequences, getSize, getSubProfile, hasGap, isCircular, toString, toString, toStringforEach, iterator, spliteratorC getCompoundInQueryAt(int alignmentIndex)
Compound in query sequence at given column index in alignment.alignmentIndex - column index in alignmentIndexOutOfBoundsException - if alignmentIndex < 1 or alignmentIndex > Profile.getLength()C getCompoundInTargetAt(int alignmentIndex)
Compound in target sequence at given column index in alignment.alignmentIndex - column index in alignmentIndexOutOfBoundsException - if alignmentIndex < 1 or alignmentIndex > Profile.getLength()int getIndexInQueryAt(int alignmentIndex)
alignmentIndex - column index in alignmentSequenceIndexOutOfBoundsException - if alignmentIndex < 1 or alignmentIndex > Profile.getLength()int getIndexInQueryForTargetAt(int targetIndex)
targetIndex - index in target SequenceSequenceIndexOutOfBoundsException - if targetIndex < 1 or targetIndex > getTarget().getLength()int getIndexInTargetAt(int alignmentIndex)
alignmentIndex - column index in alignmentSequenceIndexOutOfBoundsException - if alignmentIndex < 1 or alignmentIndex > Profile.getLength()int getIndexInTargetForQueryAt(int queryIndex)
queryIndex - index in query SequenceSequenceIndexOutOfBoundsException - if queryIndex < 1 or queryIndex > getQuery().getLength()int getNumIdenticals()
Compound.double getPercentageOfIdentity(boolean countGaps)
countGaps - If true, gap positions are counted as mismatches, i.e., the percentage is normalized by the alignment length.
If false, gap positions are not counted, i.e. the percentage is normalized by the number of aligned residue pairs.
See May (2004). "Percent sequence identity: the need to be explicit."int getNumSimilars()
Compound.AlignedSequence<S,C> getQuery()
AlignedSequence of the pair.AlignedSequence of the pairAlignedSequence<S,C> getTarget()
AlignedSequence of the pair.AlignedSequence of the pairCopyright © 2000–2018 BioJava. All rights reserved.