Hello,
I wonder if there is a quick and simple way of detecting whether a selection
exists without triggering any errors. e.g. to check if there are currently any
atoms picked (and collect the residue IDs if there is any), I do:
cmd.iterate("(lb)","stored.list.append((resi))")
if no atoms were p
Tina,
Use the Python "in" operator
selection-name in cmd.get_names("selections")
PyMOL>print "foo" in cmd.get_names("selections")
False
PyMOL>select foo, all
Selector: selection "foo" defined with 1631 atoms.
PyMOL>print "foo" in cmd.get_names("selections")
True
Cheers,
Warren
--
mailto:war..
Hello everybody.
Is it possible to mutate DNA in pymol ??
Best wishes,
Stefan Bäckström
UCMP
Umeå University
Sweden