VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Jul 06 2006 - 16:52:59 CDT
- Next message: sstappa_at_uwm.edu: "Re: water box..."
- Previous message: Ting Wang: "residue list of within ? distance"
- In reply to: Ting Wang: "residue list of within ? distance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Do something like this instead:
set sel [atomselect top "protein and within 3 of resname SCH"]
set residlist [lsort -unique [$sel get resid]]
puts "residue list: $residlist"
John Stone
vmd_at_ks.uiuc.edu
On Thu, Jul 06, 2006 at 02:46:44PM -0700, Ting Wang wrote:
> Hi ,
>
> I want to list the residues which are within a certain distance with another residues, but I can get only the atom list by using the following script:
>
> set sel [atomselect top "protein and within 3 of resname SCH"]
> $sel list
>
> Thanks for any suggestion.
>
> Ting
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- Next message: sstappa_at_uwm.edu: "Re: water box..."
- Previous message: Ting Wang: "residue list of within ? distance"
- In reply to: Ting Wang: "residue list of within ? distance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]