|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.algorithms.alignment.Alignment
public class Alignment
Class for computing optimal alignments using Needleman-Wunsch algorithm of for affine gap costs Gotohs algorithm. The class also provides the possibility of specifying the number of off-diagonals. In this case, the current implementation helps to reduce the runtime but not the memory consumption.
AffineCosts| Nested Class Summary | |
|---|---|
static class |
Alignment.AlignmentType
|
| Constructor Summary | |
|---|---|
Alignment(Alignment.AlignmentType type,
Costs costs)
Creates a new Alignment instance that aligns the sequences
s1 and s2 using the costs defined in
costs. |
|
Alignment(Alignment.AlignmentType type,
Costs costs,
int offDiagonal)
Creates a new Alignment instance that aligns the sequences
s1 and s2 using the costs defined in
costs and a banded version of the alignment algorithm. |
|
| Method Summary | |
|---|---|
PairwiseStringAlignment |
getAlignment(Sequence s1,
int startS1,
int endS1,
Sequence s2,
int startS2,
int endS2)
Computes and returns the alignment of s1 and s2
(Alignment(AlignmentType, Costs)). |
PairwiseStringAlignment |
getAlignment(Sequence s1,
Sequence s2)
Computes and returns the alignment of s1 and s2
(Alignment(AlignmentType, Costs)). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Alignment(Alignment.AlignmentType type,
Costs costs)
Alignment instance that aligns the sequences
s1 and s2 using the costs defined in
costs.
type - the type of the alignmentcosts - the costspublic Alignment(Alignment.AlignmentType type,
Costs costs,
int offDiagonal)
Alignment instance that aligns the sequences
s1 and s2 using the costs defined in
costs and a banded version of the alignment algorithm.
If the alignment is performed for Sequences of different length,
the number of secondary diagonals must be at least as large as the difference
of the lengths.
type - the type of the alignmentcosts - the costsoffDiagonal - the number of secondary diagonals at both sides of the diagonal| Method Detail |
|---|
public PairwiseStringAlignment getAlignment(Sequence s1,
Sequence s2)
s1 and s2
(Alignment(AlignmentType, Costs)).
s1 - the first sequences2 - the second sequence
public PairwiseStringAlignment getAlignment(Sequence s1,
int startS1,
int endS1,
Sequence s2,
int startS2,
int endS2)
s1 and s2
(Alignment(AlignmentType, Costs)).
s1 - the first sequencestartS1 - the start position in the first sequenceendS1 - the end position in the first sequences2 - the second sequencestartS2 - the start position in the second sequenceendS2 - the end position in the second sequence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||