[gmx-users] Corrupt TRR file -- skipping a bad frame?
anoddlad at yahoo.com
Thu Aug 28 10:30:44 CEST 2008
I'm sure I have, in the past, found a way to use trjcat/trjconv to overwrite a bad frame with a good one. From memory, I had to convert the area around the bad frame to pdb/gro (for some reason that worked where normal tools didn't), open up the files, rewrite several bad frames (just copied and pasted good frames onto it), and then converted it back to trr/xtc. It may have only worked due to being a special case, but it might be worth looking for that in the archives - I remember mentioning it before.
I'd love to know what the rules are for which file trjcat takes frames from, when there's an option, actually...
----- Original Message ----
From: Tsjerk Wassenaar <tsjerkw at gmail.com>
To: jalemkul at vt.edu; Discussion list for GROMACS users <gmx-users at gromacs.org>
Sent: Wednesday, August 27, 2008 9:21:10 AM
Subject: Re: [gmx-users] Corrupt TRR file -- skipping a bad frame?
You can determine the size of a single frame in bytes from what you
have and use 'split' to split up your corrupt trajectory. Now the
corrupt frame may not have the correct size, so you'll probably have
to think of a way to start splitting from the end.
On Wed, Aug 27, 2008 at 1:10 AM, Justin A. Lemkul <jalemkul at vt.edu> wrote:
> Matt Wyczalkowski wrote:
>> I have a corrupt TRR file with a bad frame in the middle; I am
>> wondering if I can remove just the bad frame to utilize all of my good
>> To obtain the corrupt TRR file, I first ran a simulation which died
>> (at about 37.9ns) due to a disk quota restriction; this first
>> simulation produced part1.trr. I restarted this simulation, and
>> obtained part2.trr after the simulation finished successfully. I then
>> used trjcat to concatenate these simulations (not aware that part1.trr
>> ended on a corrupt frame), and the data were appended to part1.trr.
>> Finally, to save disk space, I deleted part2.trr, confident that all
>> 60ns of simulation data were in part1.trr.
> Lesson learned in being careful :)
>> Not surprisingly, when I run any sort of analysis tool (including
>> gmxcheck) it quits when it gets to the corrupt frame. Ideally, I
>> would like to remove just the offending frame. I can use trjconv to
>> extract the data up to the bad frame, but I can't use that utility to
>> extract the good data past the bad frame, since it dies at the bad
> Unfortunately, even to extract frames, that bad frame has to be read, which
> will cause everything to crash.
> The best bet is just to do it again. Extract the viable data from the first
> part of the simulation and pick up from that point. Then concatenate, check
> your output :), and proceed.
>> For what its worth, part1.trr from the original run was about 2.1Gb,
>> and part1 + part2 are about 3.4Gb.
>> Any ideas how I could recover good data in a TRR file past a bad frame?
>> Matt Wyczalkowski
>> gmx-users mailing list gmx-users at gromacs.org
>> Please search the archive at http://www.gromacs.org/search before posting!
>> Please don't post (un)subscribe requests to the list. Use the www
>> interface or send it to gmx-users-request at gromacs.org.
>> Can't post? Read http://www.gromacs.org/mailing_lists/users.php
> Justin A. Lemkul
> Graduate Research Assistant
> Department of Biochemistry
> Virginia Tech
> Blacksburg, VA
> jalemkul[at]vt.edu | (540) 231-9080
> gmx-users mailing list gmx-users at gromacs.org
> Please search the archive at http://www.gromacs.org/search before posting!
> Please don't post (un)subscribe requests to the list. Use the www interface
> or send it to gmx-users-request at gromacs.org.
> Can't post? Read http://www.gromacs.org/mailing_lists/users.php
Tsjerk A. Wassenaar, Ph.D.
Junior UD (post-doc)
Biomolecular NMR, Bijvoet Center
3584 CH Utrecht
gmx-users mailing list gmx-users at gromacs.org
Please search the archive at http://www.gromacs.org/search before posting!
Please don't post (un)subscribe requests to the list. Use the
www interface or send it to gmx-users-request at gromacs.org.
Can't post? Read http://www.gromacs.org/mailing_lists/users.php
More information about the gromacs.org_gmx-users