<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Lei,<div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>If all your chlorine atom names start with the characters "CL", you can change them all to chlorine after you open the .gro file with this command (Favorites→Command Line):</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>setattr a element Cl @CL=</div><div class=""><br class=""></div><div class=""><div class="">--Eric</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Eric Pettersen</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>UCSF Computer Graphics Lab</div></div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 21, 2021, at 7:54 PM, Lei Qian <<a href="mailto:tuk04130@temple.edu" class="">tuk04130@temple.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Eric, <div class="">Sorry for my late reply.</div><div class="">Yes you are right.</div><div class="">I tried it again: I made a new gro file containing only CL and K as ions, and opened it using chimera. </div><div class="">I found chimera colored K as violet, which is good; but it colored CL as the same color as Carbon: yellow.</div><div class="">Thank you again for your help!</div><div class="">Best,</div><div class="">Lei</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 23, 2021 at 5:04 AM Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu" class="">pett@cgl.ucsf.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hi Lei,<div class=""><span style="white-space:pre-wrap" class=""> </span>There is no explicit indication of the chemical element type in a .gro file, so it's all guesswork. Chimera assumes that atom names that begin with any of the letters C, O, P, S, H, or N are the corresponding single letter element type. This prevents atom names like CA and HG from being interpreted as calcium and mercury, rather than carbon and hydrogen.</div><div class=""><span style="white-space:pre-wrap" class=""> </span>There aren't any great solutions. One option is to read in the .gro file, write it out as a .mol2 file, then edit that file to change the atom type of the CL atoms to Cl, then read that back in. Another is to select your CL atoms and use the "Modify Structure" tab of the Build Structure tool to change their element to Cl.</div><div class=""><br class=""></div><div class=""><div class="">--Eric</div><div class=""><br class=""></div><div class=""><span style="white-space:pre-wrap" class=""> </span>Eric Pettersen</div><div class=""><span style="white-space:pre-wrap" class=""> </span>UCSF Computer Graphics Lab</div><div class=""><br class=""></div><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Feb 18, 2021, at 8:30 PM, Lei Qian <<a href="mailto:tuk04130@temple.edu" target="_blank" class="">tuk04130@temple.edu</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Dear users,<div class="">Could I ask a question on chimera? Thanks!</div><div class="">I tried to open a gro file (small compound) using chimera. Like below:</div><div class="">... ...</div><div class=""><span style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14px" class=""> </span><font face="tahoma, sans-serif" class=""><span style="font-size:14px" class=""> 1 LIG CL 18 x.xxx </span>
x.xxx <span style="font-size:14px" class=""> </span>
x.xxx <br style="font-size:14px" class=""><span style="font-size:14px" class=""> 1 LIG CL1 19 </span>x.xxx <span style="font-size:14px" class=""> </span>x.xxx <span style="font-size:14px" class=""> </span>
x.xxx </font><br class=""></div><div class="">... ...</div><div class="">Although chimera shows the CL name "CL" when the cursor is above the atom, but the CL atom color is incorrect: the same as Carbon. </div><div class="">I tried to change the "CL" to "BR", and the chimera shows the correct color: dark red. It seems weird to me. Could you please give me any suggestions? </div><div class="">Thanks!</div><div class="">Best,</div><div class="">Lei</div><div class=""><br class=""></div><div class=""><br class=""></div></div>
_______________________________________________<br class="">Chimera-users mailing list: <a href="mailto:Chimera-users@cgl.ucsf.edu" target="_blank" class="">Chimera-users@cgl.ucsf.edu</a><br class="">Manage subscription: <a href="https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" target="_blank" class="">https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div>
_______________________________________________<br class="">Chimera-users mailing list: <a href="mailto:Chimera-users@cgl.ucsf.edu" class="">Chimera-users@cgl.ucsf.edu</a><br class="">Manage subscription: <a href="https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" class="">https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br class=""></div></blockquote></div><br class=""></div></body></html>