Hi PyMOL users,
It there any way to enhance the selecion algebra with functions? For
instance:
select len(get_chains(*)) < 2
>
Or even:
select cmd.get_fastastr(*) < 2
>
By the way, why some commands we can simply run (like get_chains) and
others are different (like cmd.get_fastastr())?
--
P
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 yo
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 script I wrote which adds a