Entering edit mode
5.7 years ago
bethpearson98
▴
20
I am doing a local alignment using pairwise2. I currently have some code that will count how many matches there are but I am trying to also count how many gaps and mismatches there are in the alignment too. Is there any way to do this? If possible I'd like the gaps and mismatches counted separately form each other and the position of the gaps/mismatches in the sequence would be super helpful.
Could you please share what you've tried and what is your code ?
I assume you took python module pairwise2
You can take a look at the
format_alignment
function and rewrite your own, something like this