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.StringFormat
matrix
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAlignedSequence, getAlignedSequence, getAlignedSequences, getAlignedSequences, getAlignedSequences, getCompoundAt, getCompoundAt, getCompoundCountsAt, getCompoundCountsAt, getCompoundsAt, getCompoundSet, getCompoundWeightsAt, getCompoundWeightsAt, getIndexOf, getIndicesAt, getLastIndexOf, getLength, getOriginalSequences, getSize, getSubProfile, hasGap, isCircular, toString, toString, toString
forEach, iterator, spliterator
public 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 Compound
s skipped in the query sequence before the aligned regionxa
- number of Compound
s 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 Compound
s skipped in the target sequence before the aligned regionya
- number of Compound
s 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)
SequencePair
Compound
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)
SequencePair
Compound
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)
SequencePair
getIndexInQueryAt
in interface SequencePair<S extends Sequence<C>,C extends Compound>
alignmentIndex
- column index in alignmentSequence
public int getIndexInQueryForTargetAt(int targetIndex)
SequencePair
getIndexInQueryForTargetAt
in interface SequencePair<S extends Sequence<C>,C extends Compound>
targetIndex
- index in target Sequence
Sequence
public int getIndexInTargetAt(int alignmentIndex)
SequencePair
getIndexInTargetAt
in interface SequencePair<S extends Sequence<C>,C extends Compound>
alignmentIndex
- column index in alignmentSequence
public int getIndexInTargetForQueryAt(int queryIndex)
SequencePair
getIndexInTargetForQueryAt
in interface SequencePair<S extends Sequence<C>,C extends Compound>
queryIndex
- index in query Sequence
Sequence
public int getNumIdenticals()
SequencePair
Compound
.getNumIdenticals
in interface SequencePair<S extends Sequence<C>,C extends Compound>
public int getNumSimilars()
SequencePair
Compound
.getNumSimilars
in interface SequencePair<S extends Sequence<C>,C extends Compound>
public AlignedSequence<S,C> getQuery()
SequencePair
AlignedSequence
of the pair.getQuery
in interface SequencePair<S extends Sequence<C>,C extends Compound>
AlignedSequence
of the pairpublic AlignedSequence<S,C> getTarget()
SequencePair
AlignedSequence
of the pair.getTarget
in interface SequencePair<S extends Sequence<C>,C extends Compound>
AlignedSequence
of the pairCopyright © 2000–2016 BioJava. All rights reserved.