VMD-L Mailing List
From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Thu Jul 26 2007 - 11:35:46 CDT
- Next message: Axel Kohlmeyer: "Re: how to wrap trajectory into truncated octahedral box"
- Previous message: Irene Newhouse: "residue_rmsd.tcl"
- In reply to: Robert Wohlhueter: "ntermolecular atomselection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
On Wed, 25 Jul 2007, Robert Wohlhueter wrote:
robert,
RW> Given the definition of the atomselect keyword "within <num> of
RW> <sel>", I would have expected that "<sel>" might accept any valid
RW> selection, including those from other (loaded) molecules: e.g. set
RW> s1 [atomselect 0 "within 5 of [atomselect 1 "all"]"] or set s2
RW> [atomselect 1 "all"]; set s1 [atomselect 0 "within 5 of $s2"]
RW>
RW> But such specifications give me "cannot parse atom selection text" errors.
and rightfully so, since the atomselect keyword creates a new function
within the tcl interpreter and that is not part of the selection
language.
RW> Generally speaking, how does one (can one) use the 'within' keyword
RW> to select, say, close contacts between a protein (loaded as one
RW> molecule) and a docked ligand (loaded as another molecule)? How
RW> else might one look at Hbonds between between "all" atoms of the
RW> ligand molecule and a few, close-by protein atoms?
the design of VMD allows selections only from within the same
'molecule' (i.e. atoms loaded from the same file). any other
mechanism would make the outcome of analysis scripts completely
unpredictable, as it would depend on what else you have loaded
into the same vmd session or what you have done before. please
keep in mind that VMD is meant to be a very versatile and flexible
tool and not only designed for the one problem that a specific
person is facing. in that spirit, consistency is a major issue
and many people and particularly john have been working very
hard over the last years to maintain and improve it.
as already suggested, the only way to handle your problem is
to merge the files and then run your analysis (usually not
a big problem, right?).
cheers,
axel.
RW>
RW> Bob Wohlhueter
RW>
RW> ---------------------------------
RW> Park yourself in front of a world of choices in alternative vehicles.
RW> Visit the Yahoo! Auto Green Center.
-- ======================================================================= Axel Kohlmeyer akohlmey_at_cmm.chem.upenn.edu http://www.cmm.upenn.edu Center for Molecular Modeling -- University of Pennsylvania Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323 tel: 1-215-898-1582, fax: 1-215-573-6233, office-tel: 1-215-898-5425 ======================================================================= If you make something idiot-proof, the universe creates a better idiot.
- Next message: Axel Kohlmeyer: "Re: how to wrap trajectory into truncated octahedral box"
- Previous message: Irene Newhouse: "residue_rmsd.tcl"
- In reply to: Robert Wohlhueter: "ntermolecular atomselection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]