VMD-L Mailing List
From: JC Gumbart (gumbart_at_ks.uiuc.edu)
Date: Sun Feb 11 2007 - 12:16:11 CST
- Next message: Axel Kohlmeyer: "Re: VMD-1.8.5: GLSL & NVidia troubles + fixed previous Spaceball problem"
- Previous message: Peter Freddolino: "Re: atomselection: number of residues"
- In reply to: Leonardo Trabuco: "Re: atomselection: number of residues"
- Next in thread: Axel Kohlmeyer: "Re: atomselection: number of residues"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
That won't work though, because each residue is overcounted based on its
number of atoms. To do it this way, you would need to type
llength [lsort -unique [$sel get residue]]
Another way is to make a new selection with whatever you're interested and
then type "and CA" (to get only one atom per residue). Then you can just do
"$sel num".
-----Original Message-----
From: owner-vmd-l_at_ks.uiuc.edu [mailto:owner-vmd-l_at_ks.uiuc.edu] On Behalf Of
Leonardo Trabuco
Sent: Sunday, February 11, 2007 11:59 AM
To: namd vmd
Cc: vmd-l_at_ks.uiuc.edu
Subject: Re: vmd-l: atomselection: number of residues
On Sun, Feb 11, 2007 at 01:35:17PM +0100, namd vmd wrote:
> How to get the number of residues selected from a atomselect command
> in vmd ?
You can do something like: llength [$sel get residue]
Best,
Leo
-- Leonardo Trabuco, Ph.D. student Theoretical and Computational Biophysics Group University of Illinois at Urbana-Champaign
- Next message: Axel Kohlmeyer: "Re: VMD-1.8.5: GLSL & NVidia troubles + fixed previous Spaceball problem"
- Previous message: Peter Freddolino: "Re: atomselection: number of residues"
- In reply to: Leonardo Trabuco: "Re: atomselection: number of residues"
- Next in thread: Axel Kohlmeyer: "Re: atomselection: number of residues"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]