VMD-L Mailing List
From: Norman Geist (norman.geist_at_uni-greifswald.de)
Date: Mon Jun 30 2014 - 00:19:07 CDT
- Next message: sunyeping: "RE: select all residues in a molecule"
- Previous message: Maxim Belkin: "Re: select all residues in a molecule"
- In reply to: sunyeping: "select all residues in a molecule"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
set all [atomselect top „all“]
set resids [lsort –unique [$all get resid]]
$all delete
foreach resid $resids {
puts “Now operating on resid $resid!”
set sel [atomselect top “resid $resid”]
#[…] do something with $sel
$sel delete; #prevent memory leak
}
Norman Geist.
Von: owner-vmd-l_at_ks.uiuc.edu [mailto:owner-vmd-l_at_ks.uiuc.edu] Im Auftrag von sunyeping
Gesendet: Sonntag, 29. Juni 2014 04:45
An: vmd-l
Betreff: vmd-l: select all residues in a molecule
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
--- Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv. http://www.avast.com
- Next message: sunyeping: "RE: select all residues in a molecule"
- Previous message: Maxim Belkin: "Re: select all residues in a molecule"
- In reply to: sunyeping: "select all residues in a molecule"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]