VMD-L Mailing List
From: Agarwal, Silvi (Silvi_Agarwal_at_student.uml.edu)
Date: Sat Mar 06 2010 - 11:52:55 CST
- Next message: Francesco Pietra: "trajectory_path.tcl queries"
- Previous message: Wallace Dumars: "Question Regarding User-Defined Trajectories"
- In reply to: Olaf Lenz: "Re: pbc in water count"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Thanks Olaf for solving my problem. it is working now.
Silvi
________________________________
From: Olaf Lenz [mailto:lenzo_at_mpip-mainz.mpg.de]
Sent: Fri 3/5/2010 2:06 AM
To: Agarwal, Silvi
Cc: vmd-l_at_ks.uiuc.edu
Subject: Re: vmd-l: pbc in water count
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
On 03/04/2010 07:07 PM, Agarwal, Silvi wrote:
> I've been trying to analyze the contacts between water and a given
> peptide from my trajectories. I used a Tcl script that can play in vmd.
> Everything went well, except from the fact that VMD is not able to count
> the water molecules around my peptide from the image
> of my periodic box. I search the mailing list and found there is not
> such handling of pbc in VMD. Do you have any suggestions? Can anyone
> share his Tcl script?
If you use VMD 1.8.7 (1.8.6 does NOT have that feature yet) and if it's
enough for you to know how many waters are in a given distance to any
atom of your peptide, then you can simply use "pbwithin" instead of
"within" in the selection. Example:
water and pbwithin 5 of chain A
will return all waters within 5 Angstrom of the chain A, taking into
account the periodic boundary conditions.
So, as a Tcl script, you could use
set sel [atomselect 0 "name O and water and pbwithin 5 of chain A"]
puts "Found "
puts [$sel num]
puts " water molecules close to chain A"
Olaf
- --
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkuQrYYACgkQtQ3riQ3oo/qjZACcCdQQNgByq0W8MrHfiWkFs7mF
YmgAoKMAbUu0qfV8g+ZVwDqoGkjU7TUr
=YJGl
-----END PGP SIGNATURE-----
- Next message: Francesco Pietra: "trajectory_path.tcl queries"
- Previous message: Wallace Dumars: "Question Regarding User-Defined Trajectories"
- In reply to: Olaf Lenz: "Re: pbc in water count"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]