<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 14/02/2012 7:59 PM, Ehud Schreiber wrote:
    <blockquote
      cite="mid:64E0EFC300379B4EB6A055D519417854013084F9@cmail"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Dear Gromacs users,<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">I minimized a protein structure
          1IARcompleted_WT.pdb, getting, among others, the files
          1IARcompleted_WT_minimized.trr and
          1IARcompleted_WT_minimized_potential_energy.xvg . Looking at
          the latter file showed the last frame to be at 217 ps:<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal">@&nbsp;&nbsp;&nbsp; title "Gromacs Energies"<o:p></o:p></p>
        <p class="MsoNormal">@&nbsp;&nbsp;&nbsp; xaxis&nbsp; label "Time (ps)"<o:p></o:p></p>
        <p class="MsoNormal">@&nbsp;&nbsp;&nbsp; yaxis&nbsp; label "(kJ/mol)" <o:p></o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal">@ s0 legend "Potential"<o:p></o:p></p>
        <p class="MsoNormal">&nbsp;&nbsp;&nbsp; 0.000000&nbsp; -31997.519531<o:p></o:p></p>
        <p class="MsoNormal">&nbsp;&nbsp;&nbsp; 0.000000&nbsp; -33810.406250<o:p></o:p></p>
        <p class="MsoNormal">&nbsp; 200.000000&nbsp; -69850.609375<o:p></o:p></p>
        <p class="MsoNormal">&nbsp; 217.000000&nbsp; -69898.031250<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">I wanted to extract only this last frame
          from the .trr file, so used<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">trjconv &nbsp;-f 1IARcompleted_WT_minimized.trr
          -o 1IARcompleted_WT_minimized_217.trr -dump 217<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">However, this seems to have produced a file
          with the t = 200 ps conformation, though the dump parameter
          was recorded, as trjconv output was:<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal">Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp;&nbsp; Value&nbsp;&nbsp; Description<o:p></o:p></p>
        <p class="MsoNormal">------------------------------------------------------<o:p></o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal">-dump&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time&nbsp;&nbsp; 217&nbsp;&nbsp;&nbsp;&nbsp; Dump frame
          nearest specified time (ps)<o:p></o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal">Will write trr: Trajectory in portable xdr
          format<o:p></o:p></p>
        <p class="MsoNormal">trn version: GMX_trn_file (single
          precision)<o:p></o:p></p>
        <p class="MsoNormal">Reading frame&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 time&nbsp; 200.000&nbsp;&nbsp; <o:p></o:p></p>
        <p class="MsoNormal">Dumping frame at t= 200 ps<o:p></o:p></p>
        <p class="MsoNormal">Reading frame&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3 time&nbsp; 217.000&nbsp;&nbsp; <o:p></o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal">.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Also, using -dump 200 gave an identical
          file to the above.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Any idea why the expected timeframe isn&#8217;t
          reproduced?<o:p></o:p></p>
        <p class="MsoNormal">I&#8217;m using gromacs 4.5.3.</p>
      </div>
    </blockquote>
    <br>
    Your nstxout parameter means not every frame is written. Prior to
    the implementation of checkpointing, the final frame was written to
    the .trr regardless of nstxout, but that no longer occurs. The final
    frame is in your checkpoint file, and you can use that anywhere you
    might use a coordinate file - including trjconv to get a simple
    coordinate file from it.<br>
    <br>
    Mark<br>
  </body>
</html>