Pairwise2 Biopython Module Get The Score In Variable
I'm using pairwise2 module from biopython, Is it possible to get the score in a variable and how ? I tried the following and it didn't work :
from Bio import pairwise2
from Bio.pairwise2 import format_alignment
for a in pairwise2.align.localms("ACCGT", "ACGC",1,-1,-2,-2):
score= a.score
• 7,563 views
•
link
1 answer
Yes it is possible,
for a in pairwise2.align.localms("ACCGT", "ACGC",1,-1,-2,-2):
al1,al2, score, begin, end = a
• 0 views
•
link
Log in to answer this question.
is it possible to give the sequence files as input to pairwise2??
same question . anyone knows how to get the score in a variable???
Please don't dredge up old posts with new questions.
What about the answer below isn't satisfactory? If you believe you have a new question that the existing answers don't address, please ask a new question, ideally showing why the existing answers fail for your data.