text_plain_output_1.png
from Bio import pairwise2

alignments = pairwise2.align.globalxx('ACCGT', 'ACG')

from Bio.SubsMat import MatrixInfo as matlist
matrix = matlist.blosum62
for a in pairwise2.align.globaldx('KEVLA', 'EVL', matrix):
    print(pairwise2.format_alignment(*a))