From: Maxim Belkin (mbelkin_at_ks.uiuc.edu)
Date: Sat Jun 28 2014 - 23:58:27 CDT

Hi Yeping,
It is not clear what you want to do (select residues in VMD or run some analysis script). If you want to run a per-residue analysis, you can do something like:

set all [atomselect top all]
set residues [lsort -unique [$all get residue]]
$all delete

foreach residue $residues {
    ... your per-residue analysis code goes here ...
}

On Jun 28, 2014, at 9:45 PM, sunyeping <sunyeping_at_aliyun.com> wrote:

> Dear all,
>
> Could you tell me how to select all residues in a molecule in VMD so that I can operate them one by one?
>
> Yeping Sun
>
>
>
>