[Chimera-users] superimpose models from inside a python script and access the transformation matrix

Eric Pettersen pett at cgl.ucsf.edu
Wed Oct 6 09:18:31 PDT 2021


Hi Maik,
	I don't know of a non-cumbersome way.  If you are adept at Python programming, the function that the match command calls is Midas.match(), defined in that module's __init__.py file, and you could lift the code that does the match and computes the matrix from there.  The Midas module is found in <your Chimera installation>/share/Midas on Windows/Linux and in Chimera.app/Contents/Resources/share/Midas on Mac.

--Eric

	Eric Pettersen
	UCSF Computer Graphics Lab

> On Oct 5, 2021, at 6:35 AM, Engeholm, Maik via Chimera-users <chimera-users at cgl.ucsf.edu> wrote:
> 
> Hi there,
> 
> I'm trying to superimpose two models from inside a python script and get back the transformation matrix. I know I can do something like
> 
> chimera.runCommand("match #1 #0 showMatrix true")
> 
> but then the matrix is written to the ReplyLog. (Of course I could save the ReplyLog and then read it in from my script to access the matrix, but that seems quite cumbersome.) Is there a better way to do this?
> 
> Cheers,
> 
> Maik
> 
> _______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu <mailto:Chimera-users at cgl.ucsf.edu>
> Manage subscription: https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users <https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20211006/cffe7e88/attachment.html>


More information about the Chimera-users mailing list