[Chimera-users] Can you delete a residue attribute?

Eric Pettersen 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.

—Eric

> 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
> 
> 	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:
>> 
>> 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 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...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20170308/8bd0b91a/attachment.html>


More information about the Chimera-users mailing list