[ Team LiB ] Previous Section Next Section

needle

needle uses the Needleman-Wunsch global alignment algorithm to find the optimum alignment (including gaps) of two sequences when considering their entire length.

Here is a sample session with needle:

% needle sw:hba_human sw:hbb_human
   
Gap opening penalty [10.0]:
Gap extension penalty [0.5]:
Output file [hba_human.needle]:

Mandatory qualifiers:

[-sequencea] (sequence)

Sequence USA.

[-seqall] (seqall)

Sequence database USA.

-gapopen (float)

The gap open penalty is the score taken away when a gap is created. The best value depends on the choice of comparison matrix. The default value assumes you are using the EBLOSUM62 matrix for protein sequences, and the EDNAFULL matrix for nucleotide sequences.

-gapextend (float)

The gap extension penalty is added to the standard gap penalty for each base or residue in the gap. This is how long gaps are penalized. You can usually expect a few long gaps rather than many short gaps, so the gap extension penalty should be lower than the gap penalty. An exception occurs when one or both sequences are single reads with possible sequencing errors, in which case you should expect many single base gaps. You can obtain this result by setting the gap open penalty to zero (or a very low value) and using the gap extension penalty to control gap scoring.

[-outfile] (align)

Output alignment filename.

Optional qualifiers:

-datafile (matrixf)

This is the scoring matrix file used when comparing sequences. By default, it is the file EBLOSUM62 (for proteins) or the file EDNAFULL (for nucleic sequences). These files are found in the data directory of the EMBOSS installation.

Advanced qualifiers:

-[no]similarity (boolean)

Display percent identity and similarity.

    [ Team LiB ] Previous Section Next Section