<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class="">The whole problem is that the spacing in your PDB file is wrong, so all of the chlorine atoms are recognized as carbon. If they were recognized as chlorine in the first place, then you would probably not need to add any bonds because the longer bond length would be recognized.<div class=""><br class=""></div><div class="">For the element to be recognized correctly, "Cl" or "CL" in chlorine atom names should be aligned with " C" in carbon atom names (space + C) like this:</div><div class=""><br class=""></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class="">ATOM 9281 C1 lig 608 -8.143 -20.714 5.951 1.00 0.00<br class="">ATOM 9282 C lig 608 -8.041 -21.112 7.368 1.00 0.00<br class="">ATOM 9283 C2 lig 608 -9.902 -22.409 6.096 1.00 0.00<br class="">ATOM 9284 C3 lig 608 -11.540 -22.165 7.969 1.00 0.00<br class="">ATOM 9285 C4 lig 608 -13.959 -22.401 8.120 1.00 0.00<br class="">ATOM 9286 C5 lig 608 -13.859 -23.110 9.294 1.00 0.00<br class="">ATOM 9287 C6 lig 608 -12.837 -21.942 7.477 1.00 0.00<br class="">ATOM 9288 C7 lig 608 -12.591 -23.333 9.782 1.00 0.00<br class="">ATOM 9310 Cl lig 608 -15.581 -22.114 7.491 1.00 0.00</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><br class=""></span></font></div><div class="">So, if you fix your PDB files to have correct spacing, I think you will also not need to make a bond, change color, etc. since it will happen correctly for the correct element.</div><div class=""><br class=""></div><div class="">See PDB format description</div><div class=""><<a href="https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/tutorials/framepdbintro.html" class="">https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/tutorials/framepdbintro.html</a>></div><div class=""><<a href="https://www.wwpdb.org/documentation/file-format-content/format33/sect9.html#ATOM" class="">https://www.wwpdb.org/documentation/file-format-content/format33/sect9.html#ATOM</a>></div><div class=""><br class=""></div><div class="">I hope this helps;,</div><div class="">Elaine</div><div class=""><div class="">-----<br class="">Elaine C. Meng, Ph.D. <br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""></div><br class=""><blockquote type="cite" class="">On Sep 8, 2022, at 2:39 AM, Enrico Martinez via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">Right, thank you Eric!<br class="">Actually here is the fragment of my ligand directly from the pdb<br class="">ATOM 9281 C1 lig 608 -8.143 -20.714 5.951 1.00 0.00<br class="">ATOM 9282 C lig 608 -8.041 -21.112 7.368 1.00 0.00<br class="">ATOM 9283 C2 lig 608 -9.902 -22.409 6.096 1.00 0.00<br class="">ATOM 9284 C3 lig 608 -11.540 -22.165 7.969 1.00 0.00<br class="">ATOM 9285 C4 lig 608 -13.959 -22.401 8.120 1.00 0.00<br class="">ATOM 9286 C5 lig 608 -13.859 -23.110 9.294 1.00 0.00<br class="">ATOM 9287 C6 lig 608 -12.837 -21.942 7.477 1.00 0.00<br class="">ATOM 9288 C7 lig 608 -12.591 -23.333 9.782 1.00 0.00<br class="">ATOM 9310 Cl lig 608 -15.581 -22.114 7.491 1.00 0.00<br class=""><br class="">so it is defined as Cl and there is no other definition for this atom.<br class="">However, the script can not draw the bond<br class=""><br class="">Il giorno mer 7 set 2022 alle ore 20:15 Eric Pettersen<br class=""><<a href="mailto:pett@cgl.ucsf.edu" class="">pett@cgl.ucsf.edu</a>> ha scritto:<br class=""><blockquote type="cite" class=""><br class="">The script is testing against the element symbol of the atom, not the atom name.<br class=""><br class="">--Eric<br class=""><br class=""><blockquote type="cite" class="">On Sep 7, 2022, at 12:54 AM, Enrico Martinez <<a href="mailto:jmsstarlight@gmail.com" class="">jmsstarlight@gmail.com</a>> wrote:<br class=""><br class="">Great, thanks Eric!<br class="">I've just tested your script (opened directly in chimera-X GUI) but it<br class="">could not draw a bond ;-)<br class="">however the commands changings the representation of the atom Cl works OK!<br class="">color :lig@Cl* lime<br class=""><br class="">P.S. precisely in my system the C atom may be C1, C2 ... C6<br class="">and the Cl atom could be either Cl or CL (but I tested with Cl like<br class="">was provided in the script :-)<br class="">Enrico<br class=""><br class="">Il giorno mar 6 set 2022 alle ore 19:52 Eric Pettersen<br class=""><<a href="mailto:pett@cgl.ucsf.edu" class="">pett@cgl.ucsf.edu</a>> ha scritto:<br class=""><br class=""><blockquote type="cite" class=""><br class="">Hi Enrico,<br class=""> 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".<br class=""><br class="">--Eric<br class=""><br class=""> Eric Pettersen<br class=""> UCSF Computer Graphics Lab<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On Sep 6, 2022, at 9:38 AM, Enrico Martinez via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">P.S Assuming that I am running chimeraX from batch file, would it be<br class="">possible to script it a little bit to create the bond with the Cl1 and<br class="">the nearest carbon atom of the ligand (it may be C1, C2, C3, C4 etc<br class="">..) ?<br class="">Many thanks in advance<br class="">Enrico<br class=""><br class="">Il giorno mar 6 set 2022 alle ore 18:33 Enrico Martinez<br class=""><<a href="mailto:jmsstarlight@gmail.com" class="">jmsstarlight@gmail.com</a>> ha scritto:<br class=""><blockquote type="cite" class=""><br class="">Great, thank you very much!<br class="">It works!<br class="">Cheers,<br class="">Enrico<br class=""><br class="">Il giorno mar 6 set 2022 alle ore 18:26 Elaine Meng<br class=""><<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>> ha scritto:<br class=""><blockquote type="cite" class=""><br class="">As mentioned in the help, there is a "reasonable false" option to add bond even if distance seems too long; try that:<br class=""><br class="">bond :lig@C1 :lig@Cl1 reasonable false<br class=""><br class=""><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/bond.html" class="">https://rbvi.ucsf.edu/chimerax/docs/user/commands/bond.html</a>><br class=""><br class=""><blockquote type="cite" class="">On Sep 6, 2022, at 9:22 AM, Enrico Martinez via ChimeraX-users <chimerax-<a href="mailto:users@cgl.ucsf.edu" class="">users@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">Thank you very much Elaine!<br class="">Actually I have already tried bond command but it didn't work for this<br class="">structure:<br class="">bond :lig@C1 :lig@Cl1<br class="">Created 0 bonds<br class=""><br class="">Il giorno mar 6 set 2022 alle ore 18:16 Elaine Meng<br class=""><<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>> ha scritto:<br class=""><blockquote type="cite" class=""><br class="">Hello,<br class="">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).<br class=""><br class=""><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/bond.html" class="">https://rbvi.ucsf.edu/chimerax/docs/user/commands/bond.html</a>><br class=""><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/tools/buildstructure.html" class="">https://rbvi.ucsf.edu/chimerax/docs/user/tools/buildstructure.html</a>><br class=""><br class="">I hope this helps,<br class="">Elaine<br class="">-----<br class="">Elaine C. Meng, Ph.D.<br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""><br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On Sep 6, 2022, at 8:34 AM, Enrico Martinez via ChimeraX-users <chimerax-<a href="mailto:users@cgl.ucsf.edu" class="">users@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">Dear ChimeraX users!<br class="">I have an issue with the visualization of the small molecule obtained<br class="">from the tleap module of the amber tools. First of all in vmd and<br class="">pymol everything looks OK. In the ChimeraX there is no bond between<br class="">atom CL of the ligand and the aromatic C atom. I've tried to change<br class="">atom type for the CL:<br class="">setattr :lig@CL1 atoms idatm_type CL<br class="">show :lig@*<br class=""><br class="">but the bond is still absent. Would it be possible to rebuild it manually?<br class="">Cheers,<br class="">Enrico<br class=""></blockquote><br class=""></blockquote>_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""></blockquote><br class=""></blockquote></blockquote>_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""></blockquote><br class=""></blockquote></blockquote><br class=""></blockquote>_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""></blockquote><br class=""></div></div></body></html>