Question: Pairwise2 Biopython Module Get The Score In Variable
1
gravatar for Maria
6.7 years ago by
Maria170
Maria170 wrote:

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
python alignment biopython • 4.8k views
ADD COMMENTlink modified 21 months ago by tslakshmipriya900 • written 6.7 years ago by Maria170

is it possible to give the sequence files as input to pairwise2??

ADD REPLYlink written 5.3 years ago by fareehakanwal9020

same question . anyone knows how to get the score in a variable???

ADD REPLYlink written 21 months ago by tslakshmipriya900

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.

ADD REPLYlink written 21 months ago by Joe17k
2
gravatar for Maria
6.7 years ago by
Maria170
Maria170 wrote:

Yes it is possible,

for a in pairwise2.align.localms("ACCGT", "ACGC",1,-1,-2,-2):
      al1,al2, score, begin, end = a
ADD COMMENTlink written 6.7 years ago by Maria170
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1288 users visited in the last hour