Swan is a simple program for computing local alignments in short DNA sequences using the Smith-Waterman algorithm. It can 1) align two sequences specified on the command line 2) find the best matching sequences in a reference FASTA file for a single query sequence or 3) find the best matching sequences between a reference and a query FASTA file.
Swan allows changing of alignment parameters, dumping of the alignment matrix, and output of alternate alignments. It can be sped up by requiring matches to have at least one k-mer perfectly aligning with the -index option. Logical key-value formatted output is obtained with the --key-value option.
Output file name, default STDOUT.
Reference DNA sequence.
Query DNA sequence.
Reference DNA FASTA file.
Query DNA FASTA file.
Consider only sequences at least as long as specified, for query and reference respectively.
Consider only sequences from query or reference respectively, for which the identifier matches <string>. Only exact matches are supported - no regular expressions.
Display matches with at least <num> identity (in range 0-100).
Require stretch of <num> matches. The purpose of this is to speed up queries, and hence this will require the argument to be in the range of 8-12 in order to be useful.
Set the Smith-Waterman gain for matches and penalties for subtitutions and gaps.
Do not consider alignments with gaps.
Dump the alignment matrix.
Trace the alignment from this matrix cell.
Process the top <num> entries from the reference file.
Write a logical key-value ouput format.
Print only the aligned part of the sequence alignment, omit flanking sequences.