skbio.alignment.multi_align_nucl#

skbio.alignment.multi_align_nucl(sequences, /, **kwargs)[source]#

Align multiple nucleotide sequences.

This is a convenience wrapper of multi_align for nucleotide sequence alignment. It is preloaded with a scoring scheme consistent with BLASTN’s defaults [1]: match score = 2, mismatch score = -3, gap opening penalty = 5, gap extension penalty = 2. All parameters remain customizable. Refer to multi_align for full documentation.

References

Examples

>>> from skbio.sequence import DNA
>>> from skbio.alignment import multi_align_nucl
>>> seqs = [DNA("CAGCTATATATCGCTACG"),
...         DNA("CTGCTTATATCCCTAGG"),
...         DNA("AAGCTATACATCCTTCACG")]
>>> path = multi_align_nucl(seqs).path
>>> for seq in path.to_aligned(seqs):
...     print(seq)
CAGCTATATATCGCT-ACG
CTGCT-TATATCCCT-AGG
AAGCTATACATCCTTCACG