VMD-L Mailing List
From: Bennion, Brian (bennion1_at_llnl.gov)
Date: Tue Apr 26 2016 - 17:26:05 CDT
- Next message: Anthony Ma: "Re: VMD HBonds Plugin Produce Duplicate Results"
- Previous message: Axel Kohlmeyer: "Re: Finding waters near a protein"
- In reply to: Mihaela Drenscko: "Finding waters near a protein"
- Next in thread: Mihaela Drenscko: "Re: Finding waters near a protein"
- Reply: Mihaela Drenscko: "Re: Finding waters near a protein"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
the tcl command llength coupled with lsort -unique is what you could use.
Brian
________________________________
From: owner-vmd-l_at_ks.uiuc.edu [owner-vmd-l_at_ks.uiuc.edu] on behalf of Mihaela Drenscko [quo.physics_at_gmail.com]
Sent: Tuesday, April 26, 2016 2:46 PM
To: vmd-l_at_ks.uiuc.edu
Subject: vmd-l: Finding waters near a protein
Hi,
I found this script:
set sel [atomselect top "water and same residue as (within 2 of protein)"]
set n [molinfo top get numframes]
for { set i 0 } { $i < $n } { incr i } {
$sel frame $i
$sel update
$sel writepdb water_$i.pdb
}
with the output of water atoms near a protein for each frame.
But actually I need to know how many water molecules are near the protein , in other words, I need to read into each pdb file, or find other way to display the number of water molecule. How can this be accomplished?
Thank you,
Mihaela
P.S. Or perhaps the number the water molecules can be counted with "measure" command? I haven't seen listed a counting results for measuring anything. I there an alternative with "measure"?
- Next message: Anthony Ma: "Re: VMD HBonds Plugin Produce Duplicate Results"
- Previous message: Axel Kohlmeyer: "Re: Finding waters near a protein"
- In reply to: Mihaela Drenscko: "Finding waters near a protein"
- Next in thread: Mihaela Drenscko: "Re: Finding waters near a protein"
- Reply: Mihaela Drenscko: "Re: Finding waters near a protein"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]