[chimera-dev] [Chimera-users] placeFragment
Eric Pettersen
pett at cgl.ucsf.edu
Mon Apr 26 09:47:29 PDT 2010
On Apr 26, 2010, at 3:36 AM, Elisabeth Ortega wrote:
> Dear all,
>
> I'm trying to place a fragment in certain position. I did this (on
> Python IDLE):
>
> from BuildStructure import placeFragment
>
> placeFragment( fragment, resName, model = 'scratch', position=None)
>
>
> Where fragment = benzene and resName = RING6 but I am not sure about
> that .
> Could you give me an example of placeFragment code?
Hi Elisabeth,
This will place a benzene ring at the center of the view in a new
residue named "BZN" in a new model named "scatch":
from BuildStructure import placeFragment
from BuildStructure.Fragment import RING6, fragDict
placeFragment(fragDict[RING6]["benzene"], "BZN")
Let me know if you have more questions. Though the placeFragment
function does have some documentation, the Fragment.py file doesn't.
Sorry about that.
--Eric
Eric Pettersen
UCSF Computer Graphics Lab
http://www.cgl.ucsf.edu
P.S. I cc'ed the chimera-dev mailing list on this since that list
deals more with programming questions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20100426/7c3999c0/attachment.html>
More information about the Chimera-dev
mailing list