[chimerax-users] Visualization of the carbon - Cl bond in a small molecule

Eric Pettersen pett at cgl.ucsf.edu
Wed Sep 7 11:15:46 PDT 2022


The script is testing against the element symbol of the atom, not the atom name.

--Eric

> On Sep 7, 2022, at 12:54 AM, Enrico Martinez <jmsstarlight at gmail.com> wrote:
> 
> Great, thanks Eric!
> I've just tested your script (opened directly in chimera-X GUI) but it
> could not draw a bond ;-)
> however the commands changings the representation of the atom Cl works OK!
> color :lig at Cl* lime
> 
> P.S. precisely in my system the C atom may be C1, C2 ... C6
> and the Cl atom could be either Cl or CL (but I tested with Cl like
> was provided in the script :-)
> Enrico
> 
> Il giorno mar 6 set 2022 alle ore 19:52 Eric Pettersen
> <pett at cgl.ucsf.edu> ha scritto:
> 
>> 
>> Hi Enrico,
>>        I have attached a Python file that will look for chlorines with no bonds and bond them to the nearest carbon in the same structure.  You run it with the command "open (wherever you saved the file)/bond_cl.py".
>> 
>> --Eric
>> 
>>        Eric Pettersen
>>        UCSF Computer Graphics Lab
>> 
>> 
>> 
>>> On Sep 6, 2022, at 9:38 AM, Enrico Martinez via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>>> 
>>> P.S Assuming that I am running chimeraX from batch file, would it be
>>> possible to script it a little bit to create the bond with the Cl1 and
>>> the nearest carbon atom of the ligand (it may be C1, C2, C3, C4 etc
>>> ..) ?
>>> Many thanks in advance
>>> Enrico
>>> 
>>> Il giorno mar 6 set 2022 alle ore 18:33 Enrico Martinez
>>> <jmsstarlight at gmail.com> ha scritto:
>>>> 
>>>> Great, thank you very much!
>>>> It works!
>>>> Cheers,
>>>> Enrico
>>>> 
>>>> Il giorno mar 6 set 2022 alle ore 18:26 Elaine Meng
>>>> <meng at cgl.ucsf.edu> ha scritto:
>>>>> 
>>>>> As mentioned in the help, there is a "reasonable false" option to add bond even if distance seems too long; try that:
>>>>> 
>>>>> bond :lig at C1 :lig at Cl1 reasonable false
>>>>> 
>>>>> <https://rbvi.ucsf.edu/chimerax/docs/user/commands/bond.html>
>>>>> 
>>>>>> On Sep 6, 2022, at 9:22 AM, Enrico Martinez via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>>>>>> 
>>>>>> Thank you very much Elaine!
>>>>>> Actually I have already tried bond command but it didn't work for this
>>>>>> structure:
>>>>>> bond :lig at C1 :lig at Cl1
>>>>>> Created 0 bonds
>>>>>> 
>>>>>> Il giorno mar 6 set 2022 alle ore 18:16 Elaine Meng
>>>>>> <meng at cgl.ucsf.edu> ha scritto:
>>>>>>> 
>>>>>>> Hello,
>>>>>>> Maybe the distance was longer than what ChimeraX thinks is a bond.  Anyway, if the bond is missing you can add it with the "bond" command (or if you prefer GUI, with Tools... Structure Editing... Build Structure tool, Adjust Bonds section).
>>>>>>> 
>>>>>>> <https://rbvi.ucsf.edu/chimerax/docs/user/commands/bond.html>
>>>>>>> <https://rbvi.ucsf.edu/chimerax/docs/user/tools/buildstructure.html>
>>>>>>> 
>>>>>>> I hope this helps,
>>>>>>> Elaine
>>>>>>> -----
>>>>>>> Elaine C. Meng, Ph.D.
>>>>>>> UCSF Chimera(X) team
>>>>>>> Department of Pharmaceutical Chemistry
>>>>>>> University of California, San Francisco
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>> On Sep 6, 2022, at 8:34 AM, Enrico Martinez via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>>>>>>>> 
>>>>>>>> Dear ChimeraX users!
>>>>>>>> I have an issue with the visualization of the small molecule obtained
>>>>>>>> from the tleap module of the amber tools. First of all in vmd and
>>>>>>>> pymol everything looks OK. In the ChimeraX there is no bond between
>>>>>>>> atom CL of the ligand and the aromatic C atom. I've tried to change
>>>>>>>> atom type for the CL:
>>>>>>>> setattr :lig at CL1 atoms idatm_type CL
>>>>>>>> show :lig@*
>>>>>>>> 
>>>>>>>> but the bond is still absent. Would it be possible to rebuild it manually?
>>>>>>>> Cheers,
>>>>>>>> Enrico
>>>>>>> 
>>>>>> _______________________________________________
>>>>>> ChimeraX-users mailing list
>>>>>> ChimeraX-users at cgl.ucsf.edu
>>>>>> Manage subscription:
>>>>>> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
>>>>> 
>>> _______________________________________________
>>> ChimeraX-users mailing list
>>> ChimeraX-users at cgl.ucsf.edu
>>> Manage subscription:
>>> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
>> 




More information about the ChimeraX-users mailing list