From: Tristan Croll (
Date: Thu Feb 12 2015 - 03:23:33 CST

That will select every resid 5 from all the segments in your structure. The keyword you're looking for is "residue" (or, if you like, "segname XXX and resid 5").

Tristan Croll
Faculty of Health
School of Biomedical Sciences
Institute of Health and Biomedical Engineering
Queensland University of Technology
60 Musk Ave
Kelvin Grove QLD 4059 Australia
+61 7 3138 6443
This email and its attachments (if any) contain confidential information intended for use by the addressee and may be privileged. We do not waive any confidentiality, privilege or copyright associated with the email or the attachments. If you are not the intended addressee, you must not use, transmit, disclose or copy the email or any attachments. If you receive this email by mistake, please notify the sender immediately and delete the original email.

> On 12 Feb 2015, at 5:44 pm, Monika Madhavi <> wrote:
> Dear all,
> I need to select all the atoms of a particular water molecule from a dcd file and write it's coordinates to a separate pdb/dcd file. Can I do this using atomselect in vmd tcl? I tried the following command but it doesn't work.
> set sel [atomselect top {resid 5}]
> Thank you.
> Monika
> --
> W.A.Monika Madhavi
> Lecturer (Probation),
> Department of Physics,
> University of Colombo.