Hi Abhi,

Actually, it was a bit surprising to me to see you're right. Now, for
showing/hiding, it has been dealt with in the code, by allowing the
"+" to be left out. However, for selecting (and alter_ing) that
doesn't go, apparently. A workaround is to use

cmd.select("selectionname","r. na\+") or
cmd.select("selectionname","n. na\+")

Alternatively, you can change the residue/atomnames using:

cmd.alter("r. na\+","resn='Na'") or cmd.alter("n. na\+","name='Na'")

All of these worked for me. Of course, it would be good to have this
dealt with properly in the same way as for showing/hiding.

Hope it helps,

Tsjerk

On 2/2/07, Abhinav Verma <abhinav1...@gmail.com> wrote:
Hallo,
 I have an annoying problem. I have pdb file with Na+ atoms defined as

ATOM      1 Na+  Na+    53      -1.106   7.854  52.244  1.00  0.00         Na

now if want to select these Na+ with

PyMOL>select n. na+
 Selector: selection "sele" defined with 0 atoms.

Any ideas how to select them?

I tried renaming them to Na and then select n. na which works. So I assume
the problem is "+" which is used for add in pymol.
I also tried n. "na+" which did not work either.


thanks in advance,
Abhi.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users




--
Tsjerk A. Wassenaar, Ph.D.
Junior UD (post-doc)
Biomolecular NMR, Bijvoet Center
Utrecht University
Padualaan 8
3584 CH Utrecht
The Netherlands
P: +31-30-2539931
F: +31-30-2537623

Reply via email to