Can you delete a residue attribute?

Hi, 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 Is there any way to actually remove attributes after they have been set on residues? Thanks, Mungo [University of Dundee shield logo]<http://uod.ac.uk/sig-home> 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@dundee.ac.uk<mailto:g.m.carstairs@dundee.ac.uk> [University of Dundee Facebook]<http://uod.ac.uk/sig-fb> [University of Dundee Twitter] <http://uod.ac.uk/sig-tw> [University of Dundee LinkedIn] <http://uod.ac.uk/sig-li> [University of Dundee YouTube] <http://uod.ac.uk/sig-yt> [University of Dundee Instagram] <http://uod.ac.uk/sig-ig> [University of Dundee Snapchat] <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

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 Eric Pettersen UCSF Computer Graphics Lab
On Mar 7, 2017, at 8:32 AM, Mungo Carstairs (Staff) <g.m.carstairs@dundee.ac.uk> wrote:
Hi,
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?
Thanks,
Mungo
<applewebdata://EDC4FCAF-AF13-487D-81F7-1D3F3D686D23>
<http://uod.ac.uk/sig-home> 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@dundee.ac.uk <mailto:g.m.carstairs@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@cgl.ucsf.edu <mailto:Chimera-users@cgl.ucsf.edu> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users <http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users>

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. —Eric
On Mar 7, 2017, at 10:19 AM, Eric Pettersen <pett@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
Eric Pettersen UCSF Computer Graphics Lab
On Mar 7, 2017, at 8:32 AM, Mungo Carstairs (Staff) <g.m.carstairs@dundee.ac.uk <mailto:g.m.carstairs@dundee.ac.uk>> wrote:
Hi,
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?
Thanks,
Mungo
<applewebdata://878A0AE2-84F8-4B11-8B89-BCE73864E3E0>
<http://uod.ac.uk/sig-home> 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@dundee.ac.uk <mailto:g.m.carstairs@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@cgl.ucsf.edu <mailto:Chimera-users@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@cgl.ucsf.edu Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
participants (2)
-
Eric Pettersen
-
Mungo Carstairs (Staff)