<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Ramy,<div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>You can do this slightly awkwardly in ChimeraX using the 'setattr' command. The trick is that you have to set the chain-level chain_id attribute first, which will change the chain ID for the appropriate polymeric residues. If there are then "loose" residues whose chain IDs you also need to switch, you would set the residue-level chain_id attribute for them. To change the polymeric residues of chain A to have chain ID N, the command would be:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>setattr /A chain chain_id N </div><div class=""><br class=""></div><div class="">If there were also "loose" residues needing changing in the same way, the command for that would be:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>setattr /A residue chain_id N</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>I would recommend getting tomorrow's daily build to do this, because the setattr command is guessing what type the value you supply is (integer, string, boolean, <i class="">etc.</i><span style="font-style: normal;" class="">) and unfortunately the strings t/T/f/F are interpreted as the boolean value true/false, and if you use that to set the chain ID then </span><i class="">bad things will happen</i><span style="font-style: normal;" class="">.</span></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>In tomorrow's build, you have to type out "true" or "false" to have it interpreted as boolean (and tomorrow's setattr command has a 'type' keyword for explicitly specifying the type if necessary).</div><div class=""><br class=""></div><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 class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 12, 2020, at 8:32 AM, Kazan Ramy (M.) <<a href="mailto:ramy.kazan@polytechnique.edu" class="">ramy.kazan@polytechnique.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class=""><div class="">Greetings to all, <br class=""></div><div class=""><br data-mce-bogus="1" class=""></div><div class="">In UCSF Chimera tools, there's an option to change chains ID/names. Unfortunately, I can't save my model under a cif format.<br class="">While in Chimera X , I can save a model under a cif format but can't change the name of my chains, or at least I'm not able to find the command for that.<br class=""><br class="">My main goal is to have my model under a cif format with my new naming system, any idea on how I can solve this problem?</div><div class=""><br class="">Ramy Kazan<br class="">PhD Student<br class=""><br data-mce-bogus="1" class=""></div></div></div>_______________________________________________<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=""></div></blockquote></div><br class=""></div></body></html>