VMD-L Mailing List
From: Devanand T (devanand.t.1986_at_gmail.com)
Date: Tue Jun 07 2016 - 13:07:39 CDT
- Next message: faride badalkhani: "radius of gyration autocorrelation function"
- Previous message: Luis Omar Alvarez Mures: "Using VMD in Java application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi all,
I have a variable say "atomsA" in tcl which contains serial
numbers of atoms. My tcl script is like below:
set ChainA [atomselect 0 "serial 1 to 2645 and name CA" frame 0]
set ChainB [atomselect 1 "serial 1 to 1261 and name CA" frame 0]
set contacts [measure contacts 4.0 $ChainA $ChainB]
set atomsA [lindex $contacts 0]
set atomsB [lindex $contacts 1]
Now I wanted the corresponding resname and resids. How to extract residue
names and resid from serial numbers (in atomsA variable) in vmd using tcl?
TIA
-- regards, *Devanand T*
- Next message: faride badalkhani: "radius of gyration autocorrelation function"
- Previous message: Luis Omar Alvarez Mures: "Using VMD in Java application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]