[chimerax-users] Chnage Chain IDs

Eric Pettersen pett at cgl.ucsf.edu
Mon Oct 12 15:47:46 PDT 2020


Hi Ramy,
	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:

	setattr /A chain chain_id N 

If there were also "loose" residues needing changing in the same way, the command for that would be:

	setattr /A residue chain_id N

	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, etc.) 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 bad things will happen.
	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).

--Eric

	Eric Pettersen
	UCSF Computer Graphics Lab

> On Oct 12, 2020, at 8:32 AM, Kazan Ramy (M.) <ramy.kazan at polytechnique.edu> wrote:
> 
> Greetings to all, 
> 
> In UCSF Chimera tools, there's an option to change chains ID/names. Unfortunately, I can't save my model under a cif format.
> 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.
> 
> 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?
> 
> Ramy Kazan
> PhD Student
> 
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20201012/7093acc5/attachment.html>


More information about the ChimeraX-users mailing list