
Dear all, I have a density map of virus-Fab complex. I want to make a central cross section which pass through the Fab pseudo-symmetry 2-fold axis. I have measure the angle of Fab relative to the capsid. Hope someone can help me. Thank you so much. Sincerely yours, Jian -----Original Message----- From: chimera-users-bounces@cgl.ucsf.edu [mailto:chimera-users-bounces@cgl.ucsf.edu] On Behalf Of chimera-users-request@cgl.ucsf.edu Sent: 2013年12月24日 15:00 To: chimera-users@cgl.ucsf.edu Subject: Chimera-users Digest, Vol 128, Issue 25 Send Chimera-users mailing list submissions to chimera-users@cgl.ucsf.edu To subscribe or unsubscribe via the World Wide Web, visit http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users or, via email, send a message with subject or body 'help' to chimera-users-request@cgl.ucsf.edu You can reach the person managing the list at chimera-users-owner@cgl.ucsf.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Chimera-users digest..." Today's Topics: 1. Re: saving coords from script (Eric Pettersen) ---------------------------------------------------------------------- Message: 1 Date: Mon, 23 Dec 2013 15:59:16 -0800 From: Eric Pettersen <pett@cgl.ucsf.edu> To: Tetsuro Fujisawa <fujisawa@gifu-u.ac.jp> Cc: "chimera-users@cgl.ucsf.edu Mailing List" <chimera-users@cgl.ucsf.edu> Subject: Re: [Chimera-users] saving coords from script Message-ID: <04B15E0C-844B-4594-8AE6-760588744D85@cgl.ucsf.edu> Content-Type: text/plain; charset="windows-1252" On Dec 20, 2013, at 1:58 AM, Tetsuro Fujisawa wrote:
Hi,
I found some strange behavior in saving pdb file by script file. I tried to modify the orientation of pdb file ?tst.pdb? (#1) in reference to axis coordinate (#0), then save the atomic coordinates in pdb file. When I typed in the commands through either command line window or IDLE, transformed coordinates were saved. It worked fine. However, the exact identical commands (inside the brancket) or lines (rc(?..?)) were run by script file shown in below, the untransformed coordinates were saved. This is also the case for ?Midas.write method?. I wondered this might be a bug.
Regards, Tetsuro
Sample.py: ---------------------------------------------- from chimera import runCommand as rc
rc('open axis.bild') rc('open tst.pdb') rc('rock y 60 1 center #1 coord #0 models #1') # orientation of tst.pdb was modified rc('focus') rc('write relative #0 #1 tstA.pdb') # write current coordinates to tstA.pdb rc('open tstA.pdb') # opened tstA has original untransformed orientation -----------------------------------------------
Hi Tetsuro, The issue is that unlike using the command line or IDLE or running a chimera-command script, no frames get drawn during the execution of a Python script unless explicitly requested and therefore the "rock" command in your script doesn't actually do anything until after the entire script runs, and by that time your coordinate file has already been written. To get the rock command to complete before proceeding with the rest of the script you need to append "; wait" or "; wait 1" (since you are rocking for 1 frame) to the end of your rock command. --Eric Eric Pettersen UCSF Computer Graphics Lab http://www.cgl.ucsf.edu