Question: Pairwise2 Biopython Module Get The Score In Variable
0
gravatar for Maria
5.3 years ago by
Maria150
Maria150 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 • 3.8k views
ADD COMMENTlink modified 4 months ago by tslakshmipriya900 • written 5.3 years ago by Maria150

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

ADD REPLYlink written 3.9 years ago by fareehakanwal9020

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

ADD REPLYlink written 4 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 4 months ago by jrj.healey11k
1
gravatar for Maria
5.3 years ago by
Maria150
Maria150 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 5.3 years ago by Maria150
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: 1719 users visited in the last hour