Hi Murpholino,

This should be the correct selection expression:

    sele = '(sc. or name CA) and i. {}'.format(stored.x)

Cheers,
  Thomas

> On Jun 20, 2018, at 3:11 PM, Murpholino Peligro <murpholi...@gmail.com> wrote:
> 
> I have waters and ions in my structures.
> 
> If I add the "sc." it works for non-glycine residues. (The error is 
> "ExecutiveWindowZoom-Warning: selection doesn't specify any coordinates.")
> How to tweak it so that F1 works for all my residues?
> 
> Ps I was thinking to include the alpha carbon in the selection so the 
> sidechain does not look truncated
>     sele = 'sc. and i. or name ca and i. {}'.format(stored.x)
> This works but it centers on the ca and not the sc. Plus... sticks are not 
> drawn.
> Ps. Sorry for the delay. I was very sick.
> 
> 
> 
> 2018-06-18 5:12 GMT-05:00 Thomas Holder <thomas.hol...@schrodinger.com>:
> 
> > It works ...but the F1 key now zooms farther away from the residues..... :P
> 
> Are there other atoms with residue number 1? Ligands? Solvent? I had removed 
> the "sc." selector, so that it works on Glycine as well. You can add it back 
> to the sele string in the zoomnext function.
> 
>     sele = 'sc. and i. {}'.format(stored.x)
> 
> Cheers,
>   Thomas

--
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

Reply via email to