JAligner: Pairwise Sequence Alignment


JAligner is a Java implementation of algorithms for pairwise alignment of biological sequences e.g. Smith-Waterman and Needleman-Wunsch.

Currently, only Smith-Waterman algorithm is implemented, it is extended to support affine gap penalties with Gotoh improvement to maintain the O(n2) time complexity of the original Smith-Waterman algorithm.

Usage

java -classpath jaligner.jar:matrices.jar gnu.bioinformatics.jaligner.SW s1.fasta s2.fasta -m matrix -o open -e extend -a -f jaligner.out

where

s1.fasta the location of the 1st sequence in FASTA format.
s2.fasta the location of the 2nd sequence in FASTA format.
-m matrixthe name of the scoring matrix,
optional, the default value is BLOSUM62
-o openthe open gap penalty,
optional, the default value is 10.0
-e extendthe extend gap penalty,
optional, the default value is 0.5
-aall the possible alignments with the same maximum score
-f jaligner.outthe output file name
optional, the default is the standard output (the console)

Examples

(Command line)

Formats

Input

Currently, FASTA is the only supported input format.

Output

Currently, Pair is the only supported output format.

Notes

References

Author

Ahmed Moustafa (ahmed at users dot sf dot net)