[Chimera-users] Can you delete a residue attribute?
pett at cgl.ucsf.edu
Wed Mar 8 13:16:32 PST 2017
Okay, I have changed ~setattr in a non-backwards-compatible way. It now completely deletes the requested attributes in all objects of the requested type. It no longer takes an atom spec. Consequently, the normal setattr command has been enhanced to allow the value set to be “none” (i.e. Python None), which is what ~setattr used to do. Available in the next daily build.
> On Mar 7, 2017, at 10:19 AM, Eric Pettersen <pett at cgl.ucsf.edu> wrote:
> Hi Mungo,
> Yeah, the command language lacks any way to completely delete an attribute. I could enhance ~setattr to also allow deletion, but before I do that work, can you describe why you need to completely delete the attribute rather than set its value to None? Thanks.
> Eric Pettersen
> UCSF Computer Graphics Lab
>> On Mar 7, 2017, at 8:32 AM, Mungo Carstairs (Staff) <g.m.carstairs at dundee.ac.uk <mailto:g.m.carstairs at dundee.ac.uk>> wrote:
>> I would like to be able to set and remove residue attributes (using Chimera commands over the REST service).
>> Setting is fine, but removing seems to be limited to changing the value to either an empty string or None.
>> https://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/midas/setattr.html <https://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/midas/setattr.html>
>> Is there any way to actually remove attributes after they have been set on residues?
>> Mungo Carstairs
>> Jalview Computational Scientist
>> The Barton Group
>> Division of Computational Biology
>> School of Life Sciences
>> University of Dundee, Dundee, Scotland, UK
>> www.jalview.org <http://www.jalview.org/>
>> www.compbio.dundee.ac.uk <http://www.compbio.dundee.ac.uk/>
>> g.m.carstairs at dundee.ac.uk <mailto:g.m.carstairs at dundee.ac.uk>
>> <http://uod.ac.uk/sig-fb> <http://uod.ac.uk/sig-tw> <http://uod.ac.uk/sig-li> <http://uod.ac.uk/sig-yt> <http://uod.ac.uk/sig-ig> <http://uod.ac.uk/sig-sc>
>> We're Scottish University of the Year again! <http://uod.ac.uk/sig-strapline>
>> The Times / Sunday Times Good University Guide 2016 and 2017
>> The University of Dundee is a registered Scottish Charity, No: SC015096_______________________________________________
>> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu <mailto:Chimera-users at cgl.ucsf.edu>
>> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users <http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users>
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu
> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chimera-users