extracting avarage pdb from dcd file

From: Srijita Paul (srijitap91_at_gmail.com)
Date: Mon Sep 11 2017 - 00:48:06 CDT

Hi,
I am trying to creat a avarage pdb file from my dcd file to get a avarage
structure of my system.For that I am using the following script
set sel [atomselect top all]
set avg [measure avpos $sel]
set coords [$sel get {x y z}]
set {x y z} $avg $sel
writepdb avgpdb.pdb $sel
set {x y z} $coords $sel delete

After running it in tk console the following error is coming-
wrong #args : should be "set VarName ? New Value ?"

Please give me a way out or provide me a script to get avarage pdb from dcd.
                  thank you

This archive was generated by hypermail 2.1.6 : Mon Dec 31 2018 - 23:20:35 CST