Re: [PyMOL] PyMOL 2.0.7 is selecting wrong atoms

2018-01-31 Thread Thomas Holder
Hi Vijay,

All "by"-operators have a weak priority, so you'll need an extra set of 
parenthesis there:

carb_pos = cmd.select('e. C and (byring e. C) and (pc.>0)')

See also the yellow highlighted note about "Entity expansion" here:
https://pymolwiki.org/index.php/Selection_Algebra

Cheers,
  Thomas

> On Feb 1, 2018, at 4:16 AM, Vijay Masand  wrote:
> 
> Dear PyMOL users,
> Today, I used following command to select positively charged ring
> carbon atoms, surprisingly, PyMOL 2.0.7 selected negatively charged
> ring carbon atoms also. Is it a bug or issue associated with 'Byring'?
> carb_pos = cmd.select('e. C and Byring e. C and (pc.>0)')
> I am sharing the image for better understanding.
> Cheers
> Vijay

--
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

[PyMOL] PyMOL 2.0.7 is selecting wrong atoms

2018-01-31 Thread Vijay Masand
Dear PyMOL users,
Today, I used following command to select positively charged ring
carbon atoms, surprisingly, PyMOL 2.0.7 selected negatively charged
ring carbon atoms also. Is it a bug or issue associated with 'Byring'?
carb_pos = cmd.select('e. C and Byring e. C and (pc.>0)')
I am sharing the image for better understanding.
Cheers
Vijay

-- 
Assistant Professor
Department of Chemistry,
Vidya Bharati College, Amravati, 444 602
Maharashtra, India.
Phone number- +91-9403312628
https://sites.google.com/site/vijaymasand/
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net