From: Efthymiou, Christos (christos.dereschuk.20_at_ucl.ac.uk)
Date: Tue Oct 11 2022 - 14:15:52 CDT

Hi Norbert,

Thank you so much for the correction. However, now I get the following error:

ERROR) No molecules loaded. mol new operates on one molecule only

Is there anything else that seems wrong in my script?
------------------------------------------------------------------------------------------------------
source C:/Users/Christos/Documents/VMD_Scripts/bigdcd.tcl

proc mycenter { frame } {
  global all
  puts "$frame: [measure center $all weight mass]"
}
set mol [mol new psf J:/pc/Wildtype_100ns_Test1/run/Wildtype_100ns_Test1_QwikMD.psf waitfor all]
set all [atomselect $mol all]
$all global
bigdcd mycenter J:/pc/Wildtype_100ns_Test1/run/MD.dcd
-------------------------------------------------------------------------------------------------------

I am having trouble finding examples online of providing the path to a psf or dcd file within a tcl script, so I appreciate any advice.

Best,
Christos

________________________________
From: Norbert Straeter <strater_at_bbz.uni-leipzig.de>
Sent: Tuesday, October 11, 2022 12:05 PM
To: Efthymiou, Christos <christos.dereschuk.20_at_ucl.ac.uk>; vmd-l_at_ks.uiuc.edu <vmd-l_at_ks.uiuc.edu>
Subject: Re: vmd-l: Using BigDCD on Simulation Files Located on Mapped Network Drive

⚠ Caution: External sender

Hi Christos,

"set mol ..." not "set $mol ..."

Use $ only when you want to get value stored in the variable.

Best,

Norbert

Am 11.10.2022 um 20:33 schrieb Efthymiou, Christos:
Hello,

I have run some large simulations with NAMD and the files are located on a mapped network drive on my Windows 10 computer. My simulation file is around 45 GB, so I would like to be able to use bigdcd to analyze the simulation. I have downloaded the script, and I am trying to calculate the center of mass from the example script.

Here is my script:
---------------------------------------------------------------------------------------------------
source C:/Users/Christos/Documents/VMD_Scripts/bigdcd.tcl

proc mycenter { frame } {
  global all
  puts "$frame: [measure center $all weight mass]"
}
set $mol [mol new psf J:/pc/Wildtype_100ns_Test1/run/Wildtype_100ns_Test1_QwikMD.psf waitfor all]
set all [atomselect $mol all]
$all global
bigdcd mycenter J:/pc/Wildtype_100ns_Test1/run/MD.dcd
------------------------------------------------------------------------------------------------------

However, when I run this script, I get the following error:

can't read "mol": no such variable

How can I fix this error? I am providing the full path to the psf and dcd files that are located on my mapped network drive.

Best,
Christos

--
-----------------------------------------------------------------------------
Norbert Straeter                                      fon +49 (0)341-97-31311
Univ.-Prof. Dr. rer. nat.
Center for Biotechnology and Biomedicine
Institute of Bioanalytical Chemistry
Faculty of Chemistry and Mineralogy
Leipzig University
Deutscher Platz 5
04103 Leipzig, Germany                             strater_at_bbz.uni-leipzig.de<mailto:strater_at_bbz.uni-leipzig.de>
https://urldefense.com/v3/__https://www.bbz.uni-leipzig.de/en/research/structural-analysis-of-biopolymers__;!!DZ3fjg!6dJoBR-XRYxtNpMliML3ZSvVuwEkhCJSXTEBugRN8r0k5OLIh-lDvrbXKp5s4bReMeOQZMhHyVLrW8rxRJEBuS6vjtyjx-w$  <https://urldefense.com/v3/__https://eur01.safelinks.protection.outlook.com/?url=https*3A*2F*2Fwww.bbz.uni-leipzig.de*2Fen*2Fresearch*2Fstructural-analysis-of-biopolymers&data=05*7C01*7Cchristos.dereschuk.20*40ucl.ac.uk*7C6be70b76748b4504fa8508daabbba343*7C1faf88fea9984c5b93c9210a11d9a5c2*7C0*7C0*7C638011119637302220*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=OIMhZdlkyF40A6Kvvw*2Fi02rOPhz2Hs4r23nibRQ0Ef4*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!DZ3fjg!6dJoBR-XRYxtNpMliML3ZSvVuwEkhCJSXTEBugRN8r0k5OLIh-lDvrbXKp5s4bReMeOQZMhHyVLrW8rxRJEBuS6vL62YOsI$  >
-----------------------------------------------------------------------------