Dear Eric,
Thanks a lot!
Best,
Davide
On Sep 18, 2024, at 3:04 AM, Mandelli, Davide via Chimera-users <chimera-users@cgl.ucsf.edu> wrote:
_______________________________________________Dear developers,
I am trying to automatize a task using the chimera python interface.
In the graphical user interface, I can get the result I want by performing the following actions:
1) Select a carbon atom (ctrl+left button)2) Tools --> Structure Editing --> Build Structure3) In the "Build Structure" window, select "Modify Structure"4) Change selected atom to...: "Element C", "Bonds 4", "Geometry Tetrahedral" (basically the default)5) Apply6) Save as pdb
Is it possible to create a python script to do 1-6 (repeating 1-5 for several carbon atoms identified by residue id and name)?
I could then very easily prepare a bash script to apply these changes to hundreds of pdb files.
I tried asking chatGPT for a quick answer, but most probably it is using python classes and methods that actually do not exist. Looking at the online documentation was also unsuccesful, but maybe you could point me to the right place.
Thanks a lot!
Best,Davide
Dr Davide Mandelli
Institute of Neuroscience and Medicine INM-9Forschungszentrum JülichEmail: d.mandelli@fz-juelich.de
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Forschungszentrum Juelich GmbH52425 JuelichSitz der Gesellschaft: JuelichEingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498Vorsitzender des Aufsichtsrats: MinDir Stefan MüllerGeschaeftsfuehrung: Prof. Dr. Astrid Lambrecht (Vorsitzende),Karsten Beneke (stellv. Vorsitzender), Dr. Ir. Pieter Jansens------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Chimera-users mailing list -- chimera-users@cgl.ucsf.edu
To unsubscribe send an email to chimera-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimera-users@cgl.ucsf.edu/