[Chimera-users] delete named selection

Eric Pettersen pett at cgl.ucsf.edu
Tue Dec 14 13:55:58 PST 2010

On Dec 13, 2010, at 11:08 AM, S. Shunmugasundararaj wrote:

>  Hi,
> How do I delete the "Named selection"  from the  chimera file? I  
> could not get the info from the archive or by searching the web.

I guess I've never run into a situation where someone wants to remove/ 
delete a named selection!  Can you describe why you want/need to do  
this?  I would consider making it easier to do if whatever situation  
you describe seems like it might be run into by others.

Anyway, I'm assuming that "chimera file" means a Chimera session  
file.  To remove named selections from a session file you would edit  
it with a text editor (that can handle long lines) and look for a line  
that looks like this:

savedSels = [[sel-name1, [bunch of numbers...], [sel-name2, [more  
numbers], etc.]

To remove sel-name1 from the save selection, change the line to:

savedSels = [[sel-name2, [more numbers], etc.]

To remove all selections:

saveSels = []

Don't just remove the line entirely.  You'll get an error restoring  
the session if you do that.


                         Eric Pettersen
                         UCSF Computer Graphics Lab

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20101214/f175059e/attachment.html>

More information about the Chimera-users mailing list