I am trying to use this tutorial and I got a problem with it:
from Bio import pairwise2
from Bio import SeqIO
from Bio.pairwise2 import format_alignment
seq1 = SeqIO.read("data/alpha.faa", "fasta")
seq2 = SeqIO.read("data/beta.faa", "fasta")
alignments = pairwise2.align.globalxx(seq1.seq, seq2.seq)
print(pairwise2.format_alignment(*alignment[0]))
But I am got this error:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-144-da7cdbf0f1b6> in <module>
1 from Bio.pairwise2 import format_alignment
2
----> 3 print(pairwise2.format_alignment(*alignment[0]))
TypeError: format_alignment() takes 5 positional arguments but 52 were given
I am just folliwing along with the biopython tutorial. Looks like in my code the function is receiving more args than due, but
it looks works with the tutorial.
Hey bro,
you got it done!
Thank you for your time and kindness.
Paulo
You're welcome, good luck!