Re: [PyMOL] center of mass

2011-04-11 Thread Tsjerk Wassenaar
Hi Kanika, Jason, cmd.get_legal_name is only called in 'com' if no object name is given. The quickest workaround thus is to provide an object name for the 'com' object as third argument. Of course, it still is wise to upgrade and benefit from all those cool new features :) Cheers, Tsjerk On Mo

Re: [PyMOL] center of mass

2011-04-10 Thread Jason Vertrees
Hi Kanika, That version is too old, hence the missing command. It's probably wise to upgrade. Cheers, -- Jason On Mon, Apr 11, 2011 at 2:50 AM, kanika sharma wrote: > version 1.1 r1 > > On Mon, Apr 11, 2011 at 12:04 PM, Jason Vertrees > wrote: >> >> Hi Kanika, >> >> > I opened a file 1alu

Re: [PyMOL] center of mass

2011-04-10 Thread kanika sharma
version 1.1 r1 On Mon, Apr 11, 2011 at 12:04 PM, Jason Vertrees < jason.vertr...@schrodinger.com> wrote: > Hi Kanika, > > > I opened a file 1alu in pymol and ran script CenterOfMass.py. When I gave > > the command com 1alu, state=1, it displays a message > > > > AttributeError: 'module' objec

Re: [PyMOL] center of mass

2011-04-10 Thread Jason Vertrees
Hi Kanika, > I opened a file 1alu in pymol and ran script CenterOfMass.py. When I gave > the command com 1alu, state=1, it displays a message > > AttributeError: 'module' object has no attribute 'get_legal_name'... > Iam unable to figure out why is this so., It sounds like your PyMOL is out o

[PyMOL] center of mass

2011-04-10 Thread kanika sharma
I opened a file 1alu in pymol and ran script CenterOfMass.py. When I gave the command com 1alu, state=1, it displays a message AttributeError: 'module' object has no attribute 'get_legal_name'... Iam unable to figure out why is this so., --

Re: [PyMOL] Center of Mass

2011-04-01 Thread Sean Law
Cunliang, There is a script available on the PyMOL-Wiki that calculates either the center-of-mass OR the center-of-geometry. Please see http://www.pymolwiki.org/index.php/Center_Of_Mass It uses the "pseudoatom" function to generate a sphere at the desired center of mass. Hope this answers yo

Re: [PyMOL] Center of mass

2011-03-31 Thread 耿存亮
Hi Kanika and Tsjerk, if you use the commands below: pseudoatom coms, chain a pseudoatom coms, chain b bond coms, coms you create the center of geometry rather than the center of mass. I'd like to know how to create the center of mass. Alternatively you can use the command distance to draw a l

Re: [PyMOL] Center of mass

2011-03-31 Thread Tsjerk Wassenaar
Hi Kanika, You can also use pseudoatoms. If you have the positions: pseudoatom coms,pos=[x1,y1,z1] pseudoatom coms,pos=[x2,y2,z2] bond coms,coms Or, if you just have the chains: pseudoatom coms, chain a pseudoatom coms, chain b bond coms, coms Alternatively you can use CGO objects. But pseudo

Re: [PyMOL] Center of mass

2011-03-31 Thread Ramiro Téllez Sanz
If I'm not mistaken, you can select both center of masses, since they are independent objects in the right side bar, and save them together as a single pdb. Then, when loading this single pdb, you'll be able to draw the bond. Hope that helps. > This says that bond can only be added within an obje

Re: [PyMOL] Center of mass

2011-03-31 Thread kanika sharma
This says that bond can only be added within an object not between 2 objects. -- Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you

Re: [PyMOL] Center of mass

2011-03-31 Thread Marius Retegan
Enter editing mode, select the 2 points, press Ctrl + t or type bond on the cli. Cheers, Marius On Thu, Mar 31, 2011 at 11:36 AM, kanika sharma wrote: > I have two points corresponding to center of masses of 2 proteins. I have > to draw a line between both. Is there a feature that can do this?

[PyMOL] Center-of-Mass

2010-05-28 Thread Sean Law
Hi All, I have re-written the center-of-mass script found on the Wiki (which was actually only calculating center-of-geometry). This script provides three improvements to the previous script: 1) The real center-of-mass can be calculated based on a table of atomic masses, 2) pseudoatoms are us

Re: [PyMOL] center of mass and distances

2007-03-02 Thread Andreas Henschel
Hi Filippo, Here is a python script that calculates the Center of mass for a given selection and creates a CGO sphere there. It is is not 100% exact as it only weighs C-Alpha atoms. This is exactly how pymol centers selections: when you run the script, the domain is centered and if you rotate

Re: [PyMOL] center of mass and distances

2007-03-02 Thread Martin Höfling
Am Freitag, 2. März 2007 schrieb Filippo Marchioni: > Hi all! > Two questions: > Does anyone know how to read the coordinates (x,y,z) of a selected atom > in a protein? > Or even better > Does anyone know how to visualize the center of mass of the protein, > reset the axis (x,y,z) using the centroi

[PyMOL] center of mass and distances

2007-03-02 Thread Filippo Marchioni
Hi all! Two questions: Does anyone know how to read the coordinates (x,y,z) of a selected atom in a protein? Or even better Does anyone know how to visualize the center of mass of the protein, reset the axis (x,y,z) using the centroid as origin and then calculate the distance of a resi or an atom f