S - each element of the alignment Profile is of type SC - each element of an AlignedSequence is a Compound of type Cpublic class SimpleSequencePair<S extends Sequence<C>,C extends Compound> extends SimpleProfile<S,C> implements SequencePair<S,C>
Profile.StringFormatmatrix| Constructor and Description |
|---|
SimpleSequencePair(AlignedSequence<S,C> query,
AlignedSequence<S,C> target)
Creates a pair profile for the given already aligned sequences.
|
SimpleSequencePair(S query,
S target,
List<AlignedSequence.Step> sx,
int xb,
int xa,
List<AlignedSequence.Step> sy,
int yb,
int ya)
Creates a pair profile for the given sequences with a local alignment.
|
SimpleSequencePair(S query,
S target,
List<AlignedSequence.Step> sx,
List<AlignedSequence.Step> sy)
Creates a pair profile for the given sequences with a global alignment.
|
| 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. |
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, iterator, toString, toString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAlignedSequence, 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, spliteratorpublic SimpleSequencePair(AlignedSequence<S,C> query, AlignedSequence<S,C> target)
query - the first sequence of the pairtarget - the second sequence of the pairIllegalArgumentException - if sequences differ in sizepublic SimpleSequencePair(S query, S target, List<AlignedSequence.Step> sx, List<AlignedSequence.Step> sy)
query - the first sequence of the pairtarget - the second sequence of the pairsx - lists whether the query sequence aligns a Compound or gap at each index of the alignmentsy - lists whether the target sequence aligns a Compound or gap at each index of the alignmentIllegalArgumentException - if alignments differ in size or given sequences do not fit in alignmentspublic SimpleSequencePair(S query, S target, List<AlignedSequence.Step> sx, int xb, int xa, List<AlignedSequence.Step> sy, int yb, int ya)
query - the first sequence of the pairtarget - the second sequence of the pairsx - lists whether the query sequence aligns a Compound or gap at each index of the alignmentxb - number of Compounds skipped in the query sequence before the aligned regionxa - number of Compounds skipped in the query sequence after the aligned regionsy - lists whether the target sequence aligns a Compound or gap at each index of the alignmentyb - number of Compounds skipped in the target sequence before the aligned regionya - number of Compounds skipped in the target sequence after the aligned regionIllegalArgumentException - if alignments differ in size or given sequences do not fit in alignmentspublic C getCompoundInQueryAt(int alignmentIndex)
SequencePairCompound in query sequence at given column index in alignment.getCompoundInQueryAt in interface SequencePair<S extends Sequence<C>,C extends Compound>alignmentIndex - column index in alignmentpublic C getCompoundInTargetAt(int alignmentIndex)
SequencePairCompound in target sequence at given column index in alignment.getCompoundInTargetAt in interface SequencePair<S extends Sequence<C>,C extends Compound>alignmentIndex - column index in alignmentpublic int getIndexInQueryAt(int alignmentIndex)
SequencePairgetIndexInQueryAt in interface SequencePair<S extends Sequence<C>,C extends Compound>alignmentIndex - column index in alignmentSequencepublic int getIndexInQueryForTargetAt(int targetIndex)
SequencePairgetIndexInQueryForTargetAt in interface SequencePair<S extends Sequence<C>,C extends Compound>targetIndex - index in target SequenceSequencepublic int getIndexInTargetAt(int alignmentIndex)
SequencePairgetIndexInTargetAt in interface SequencePair<S extends Sequence<C>,C extends Compound>alignmentIndex - column index in alignmentSequencepublic int getIndexInTargetForQueryAt(int queryIndex)
SequencePairgetIndexInTargetForQueryAt in interface SequencePair<S extends Sequence<C>,C extends Compound>queryIndex - index in query SequenceSequencepublic int getNumIdenticals()
SequencePairCompound.getNumIdenticals in interface SequencePair<S extends Sequence<C>,C extends Compound>public int getNumSimilars()
SequencePairCompound.getNumSimilars in interface SequencePair<S extends Sequence<C>,C extends Compound>public AlignedSequence<S,C> getQuery()
SequencePairAlignedSequence of the pair.getQuery in interface SequencePair<S extends Sequence<C>,C extends Compound>AlignedSequence of the pairpublic AlignedSequence<S,C> getTarget()
SequencePairAlignedSequence of the pair.getTarget in interface SequencePair<S extends Sequence<C>,C extends Compound>AlignedSequence of the pairCopyright © 2000–2017 BioJava. All rights reserved.