[Biopython] How to only extract the best alignment without looping with Bio.Align
Slowat
slowat0kela at gmail.com
Wed Aug 14 06:46:23 EDT 2024
Hello -
May I ask. I want to align two sequences, and return, for the optimal
alignment only, the score, number of identities, mismatches, gaps etc.
I can see that this is possible by using the 'one_alignment_only=True'
parameter in the pairwise2 module, however when I load the pairwise2
module, I get the message that this module is deprecated.
Using Bio.Align, I can see how you can obtain the .score for the best
alignment, but not how to obtain the other information I require about the
best alignment.
I don't want to loop through all the possible alignments, as this would be
prohibitively time-consuming for me. Also, since the .score of the best
alignment can be returned, it makes me think that the best alignment should
be saved somewhere and I should be able to see it (even to calculate the
gaps, identities and mismatches myself).
Could someone explain how to go about this, without using the deprecated
pairwise2 module?
Thanks
Slowat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20240814/46d72dd5/attachment.htm>
More information about the Biopython
mailing list