[Chimera-users] Rename models from command line
Eric Pettersen
pett at cgl.ucsf.edu
Mon Mar 30 14:40:19 PDT 2015
You can change the name with "setattr m name new_name".
--Eric
On Mar 26, 2015, at 2:58 PM, Oliver Clarke <olibclarke at gmail.com> wrote:
> Thanks Elaine - I use both of those commands frequently, but unfortunately in this case I actually do want to change the model name.
>
> I’m using a long alias with many molmap calls on different selections to generate and color low resolution blobs corresponding to each domain of my protein, and I would like to change the names of the output model as I do so so that I know that model #1.20 corresponds to “domain xyz” without switching it on and off in the model panel.
>
> Cheers,
> Oli.
>> On Mar 26, 2015, at 5:51 PM, Elaine Meng <meng at cgl.ucsf.edu> wrote:
>>
>> Hi Oliver,
>> Not exactly, at least with commands, but you may be able to accomplish essentially what you desire by using "alias" (string substitution into commands) and/or named selections.
>>
>> See
>> <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/alias.html>
>> <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/namesel.html>
>>
>> I'm fond of aliases, which don't require you to go through selection.
>> I hope this helps,
>> Elaine
>> ----------
>> Elaine C. Meng, Ph.D.
>> UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
>> Department of Pharmaceutical Chemistry
>> University of California, San Francisco
>>
>>
>> On Mar 26, 2015, at 2:03 PM, Oliver Clarke <olibclarke at gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> Is there any way to rename models from the command line? I can do so using the model panel, but I have a script that generates a bunch of different models, and I would like to give them descriptive names apart from the model id in the script.
>>>
>>> Oliver.
>>> _______________________________________________
>>> Chimera-users mailing list
>>> Chimera-users at cgl.ucsf.edu
>>> http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
>>
>
>
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
>
More information about the Chimera-users
mailing list