From: Jérôme Hénin (jhenin_at_ifr88.cnrs-mrs.fr)
Date: Mon Nov 01 2010 - 05:12:59 CDT

Hi Parisa,

On 1 November 2010 01:53, Parisa Akhski <Parisa.Akhshi_at_chem.queensu.ca> wrote:
> Dear VMD users,
>
> I have two questions and would really appreciate if anyone could help me:
> 1. I have done a MD simulation in three restart jobs. I would like to first
> load all dcd files after each other to save
> all trajectory files (dcd files) as one dcd file. Then, I want to unwrap the
> whole system. The problem is that I cannot use VMD on my PC (windows/
> Ubuntu) to load more than 7000 frames while I have overal 100000 frames.
> My guess is that I may be able to do this using super computers but, I don't
> know where I can find the commands for text mode VMD on Unix. Is there any
> document which can provide me with this information?

If your script is in file script.tcl, type:
vmd -dispdev text -e script.tcl

(you can add the command "exit" at the end of the script if you want
VMD to terminate and return to the command line after running it)

> 2. Since I have an idea of which frames I would like to study for now, I can
> only load those frames on my own PC.
> But, I realized that to unwrap the system if I don't start from the first
> frame, the results of unwrap don't seem to be correct. I am wondering how
> unwrap works (I mean does it take the coordination of the system for the
> first frame and unwraps all system for the next frames with respect to the
> first one?) If so, I can only load the first frame and the ones I need to
> unwrap without the need to load the whole trajectory files.

Unwrap uses the first frame as a reference for the second one, then it
uses the unwrapped second frame as a reference for the third, and so
on. It relies on the fact that each frame is fairly similar to the
previous one.

If you want to process the trajectory on your desktop, you could write
a script that does the following:
a) load as many frames as will fit in memory (say, 0 to 7000)
b) run unwrap
c) save frames to new DCD file
d) delete all frames but the last one (0 to 6999) - keep the last
(7000) as a reference
e) load frames 7001 to 14000
f) run unwrap
g) save all but the first frame (7001-14000) to new DCD file

Repeat steps d) to g) until the whole trajectory has been unwrapped,
then possibly use catDCD to repackage the unwrapped frames into a
different number of DCD files.

Best,
Jerome