Re: [PyMOL] count_atoms and states

2019-08-12 Thread Christian "Cole" French
> > So these were my personal thoughts and issues about. > > Have a nice weekend! > > Em sex, 9 de ago de 2019 12:41, Pedro Lacerda > escreveu: > >> Question answered. >> >> Best regards! >> >> Em sex, 9 de ago de 2019 às 12:33, Christian &qu

Re: [PyMOL] count_atoms and states

2019-08-09 Thread Christian "Cole" French
Hi Pedro, *count_states* is correct here; there's only 1 state, which is state 1. The reason for the observed *count_atoms* behavior is that "polymer" and "state" are different operators in the selection algebra, so putting them together without a logical operator such as "and" or "or" between

Re: [PyMOL] Selection algebra

2019-08-05 Thread Christian "Cole" French
; or "organic"? > > Em seg, 5 de ago de 2019 12:36, Christian "Cole" French < > christian.fre...@schrodinger.com> escreveu: > >> I see now. I updated the code at the link in my previous email to provide >> behavior which should

Re: [PyMOL] Selection algebra

2019-08-05 Thread Christian &quot;Cole&quot; French
t; return compute_peplength(atom) > > I'm looking for the availability of user defined functions on selection > expressions. How to? > > Em sex, 2 de ago de 2019 às 15:44, Christian "Cole" French < > christian.fre...@schrodinger.com> escreveu: > >> Edit

Re: [PyMOL] Selection algebra

2019-08-02 Thread Christian &quot;Cole&quot; French
Edit: remove the cmd. part when running select_with_filter. (Since it's a custom command, it doesn't belong to the cmd module.) On Fri, Aug 2, 2019 at 2:41 PM Christian "Cole" French < christian.fre...@schrodinger.com> wrote: > Hi Pedro Lacerda, > > Here is a link to a

Re: [PyMOL] Selection algebra

2019-08-02 Thread Christian &quot;Cole&quot; French
Hi Pedro Lacerda, Here is a link to a script I wrote which adds a command which does what you ask: https://gist.github.com/ColeFrench/6f68fa5f04a67bb6234f10c25debb865. To use it, download the file to the directory where you run PyMOL from, then open PyMOL and run run select_with_filter.py. For