|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.biojava3.alignment.SimpleProfile<S,C>
org.biojava3.alignment.SimpleSequencePair<S,C>
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>
Implements a data structure for the results of pairwise sequence alignment.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojava3.alignment.template.Profile |
|---|
Profile.StringFormat |
| Field Summary |
|---|
| Fields inherited from class org.biojava3.alignment.SimpleProfile |
|---|
matrix |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.biojava3.alignment.SimpleProfile |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.biojava3.alignment.template.Profile |
|---|
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 |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Constructor Detail |
|---|
public SimpleSequencePair(AlignedSequence<S,C> query,
AlignedSequence<S,C> target)
query - the first sequence of the pairtarget - the second sequence of the pair
IllegalArgumentException - if sequences differ in size
public 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 alignment
IllegalArgumentException - if alignments differ in size or given sequences do not fit in alignments
public 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 region
IllegalArgumentException - if alignments differ in size or given sequences do not fit in alignments| Method Detail |
|---|
public 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 alignment
public 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 alignment
public int getIndexInQueryAt(int alignmentIndex)
SequencePair
getIndexInQueryAt in interface SequencePair<S extends Sequence<C>,C extends Compound>alignmentIndex - column index in alignment
Sequencepublic int getIndexInQueryForTargetAt(int targetIndex)
SequencePair
getIndexInQueryForTargetAt in interface SequencePair<S extends Sequence<C>,C extends Compound>targetIndex - index in target Sequence
Sequencepublic int getIndexInTargetAt(int alignmentIndex)
SequencePair
getIndexInTargetAt in interface SequencePair<S extends Sequence<C>,C extends Compound>alignmentIndex - column index in alignment
Sequencepublic int getIndexInTargetForQueryAt(int queryIndex)
SequencePair
getIndexInTargetForQueryAt in interface SequencePair<S extends Sequence<C>,C extends Compound>queryIndex - index in query Sequence
Sequencepublic 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 pair
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||