VMD-L Mailing List
From: Claw Isthelaw (clawisthelaw_at_hotmail.com)
Date: Mon Jun 02 2008 - 11:01:49 CDT
- Next message: Axel Kohlmeyer: "Re: Create atom selection from list of integers"
- Previous message: politr_at_huji.ac.il: "Re: measure hbonds problem"
- Next in thread: Axel Kohlmeyer: "Re: Create atom selection from list of integers"
- Reply: Axel Kohlmeyer: "Re: Create atom selection from list of integers"
- Reply: Leonardo Trabuco: "Re: Create atom selection from list of integers"
- Reply: Joaquim Rui Rodrigues: "Re: Create atom selection from list of integers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Dear VMD Community,
Given a list of integers (residue numbers) like:
{1153 1134 1128 1194 1123}, how can I create an atomselection containing all of those residues. I'm trying to write out a PDB file containing the entire protein and a list of water residues. I've tried the following:
----------------------------------------------------------
set watlist1 {1153 1134 1128 1194 1123}
foreach resid $watlist1 {
lappend watlist2 "resid $resid"
}
set watlist3 [join $watlist2 " or "]
animate write pdb new.pdb sel [atomselect top "protein or [puts $watlist3]"]
---------------------------------------------------------
I have tried some other things too. Is there an easier way to be doing this?
Thanks,
Jeff Tibbitt
_________________________________________________________________
E-mail for the greater good. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood
- Next message: Axel Kohlmeyer: "Re: Create atom selection from list of integers"
- Previous message: politr_at_huji.ac.il: "Re: measure hbonds problem"
- Next in thread: Axel Kohlmeyer: "Re: Create atom selection from list of integers"
- Reply: Axel Kohlmeyer: "Re: Create atom selection from list of integers"
- Reply: Leonardo Trabuco: "Re: Create atom selection from list of integers"
- Reply: Joaquim Rui Rodrigues: "Re: Create atom selection from list of integers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]