VMD-L Mailing List
From: Maxim Belkin (mbelkin_at_ks.uiuc.edu)
Date: Sat Jun 28 2014 - 23:58:27 CDT
- Next message: Norman Geist: "AW: select all residues in a molecule"
- Previous message: sunyeping: "select all residues in a molecule"
- In reply to: sunyeping: "select all residues in a molecule"
- Next in thread: Norman Geist: "AW: select all residues in a molecule"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
>
>
>
>
- Next message: Norman Geist: "AW: select all residues in a molecule"
- Previous message: sunyeping: "select all residues in a molecule"
- In reply to: sunyeping: "select all residues in a molecule"
- Next in thread: Norman Geist: "AW: select all residues in a molecule"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]