[Chimera-users] Realign sequences

Hernando J Sosa hernando.sosa at einsteinmed.edu
Sat Nov 12 16:01:43 PST 2022


Is there a way to realign sequences already in a multialign window within a python script?
I want to do this because the first alignment dome using matchmaker in many cases contains mismatches to the aligned structures. Using the realign option in the menu fixes the problem but I want to do this within a script.

I have code that creates the alignment window and then retrieves the instance:

from chimera.extension import manager
from MultAlignViewer.MAViewer import MAViewer

runCommand('mm #0 #1 show true')
mavs = [inst for inst in manager.instances if isinstance(inst, MAViewer)]
mymav = mavs[-1]

I tried then to do something like
mymav.realign()

However, I don't  know what parameters to put in the realign function, or whether this is the right function to use or whether there is a better way to do this.

Any help would be appreciated

Thanks

Hernando


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimera-users/attachments/20221113/0cdc8029/attachment.html>


More information about the Chimera-users mailing list