Hi Michael, If you don't superimpose the structures then Match->Align won't give a very good result. As per it's name, Match->Align takes "matched" (superimposed) structures and produces an alignment based on that superimposition. What you are doing now is basically identical to running MatchMaker with your first sequence as the reference sequence. If that's what you want to do then just run MatchMaker (using the matchmaker command for instance) and make sure it creates an MAV instance (i.e. add "show true" to the command arguments), find the MatchMaker instance (details below) and use it to save the Stockholm file.
Here's the tricky code to find the MAV instance:
def findMAV():
from chimera.extension import manager
from MultAlignViewer.MAViewer import MAViewer
mavs = [inst for inst in manager.instances if isinstance(inst, MAViewer)
if not mavs:
raise AssertionError("No MAV instances")
return mavs[-1]
mav = findMAV()
Then you use basically the same code I gave before for saving the Stockholm file except that 'seqs' is just 'mav.seqs' and you don't have to construct a fakeMAV instance, just use the actual MAV instance you have.
You probably want to close each pair of structures after getting the alignment so that there's no chance that findMAV will return the wrong instance (I don't think it will anyway). If it is a problem to do so, then make the MAV quit instead by calling mav.Quit().
This whole process will only work with the graphical user interface available (i.e. not in the "headless" version of Chimera) since it needs the MAV dialog, whereas the process I gave the last time could be run in the headless version.
--Eric
Hello,
thank you for your answer, but I'm not sure if this is what I need. When I did it by mouse clicking I did my alignments without superimposing structures.
I did:
Favourites -> sequence
then selected first one out of two, and then edit -> Add sequence -> from structure tab
here selected second structure, and checked "Include secondary structure score (30%)", and apply. The final alignment is much better in my case, than those made by match -> align. Results in printscreen below.
Is there a way to do this by script?
<image.png>
--
yours sincerely
Michael Kadlof
University of Warsaw
_______________________________________________
Chimera-users mailing list
Chimera-users@cgl.ucsf.edu
http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users