<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 11/08/2011 10:22 PM, Da-Wei Li wrote:
    <blockquote
cite="mid:CAFs1QTc9JUt2bdraYDWXCvp=2yDjsHda8vdtpe7oQwA1N_-BHw@mail.gmail.com"
      type="cite">Dear Mark and others<br>
      <br>
      I did more tests and thought that it might come from numerical
      error. The reasons are<br>
      <br>
      1. If I use .trr file instead of the low precision xtc file,
      things become better, ie, I get much less snapshots that has high
      energy.<br>
    </blockquote>
    <br>
    That doesn't make sense if the underlying frames are the same in
    your .xtc and .trr files. However, if you're talking about different
    numbers of frames, then you probably have transient periodicity
    artefacts.<br>
    <br>
    <blockquote
cite="mid:CAFs1QTc9JUt2bdraYDWXCvp=2yDjsHda8vdtpe7oQwA1N_-BHw@mail.gmail.com"
      type="cite">
      <br>
      2. I supplied -pforce in my mdrun -rerun and found that the high
      vdw energy was usually caused by one pair of atoms, whose distance
      was just very near the clash zone, so that small error on the
      coordinates would cause large energy error. The force is always
      around 10000.<br>
    </blockquote>
    <br>
    Sounds like you have a non-equilibrium trajectory (from your EM?),
    in which case small deviations can have large effects.<br>
    <br>
    <blockquote
cite="mid:CAFs1QTc9JUt2bdraYDWXCvp=2yDjsHda8vdtpe7oQwA1N_-BHw@mail.gmail.com"
      type="cite">
      <br>
      3. Actually bond length and bond angle energies are also affected.
      I can fully reproduce these two energies if I use .trr file in my
      rerun but will get several tens of kj/mol error if I use .xtc
      file, for a protein of size of 100 AA.<br>
    </blockquote>
    <br>
    Several tens of kJ/mol error in the non-bonded energy looks OK
    compared to the magnitude of the non-bonded energy. Anyway, if your
    purpose is to compare energies computed from the same
    configurations, then you should use the same configurations for
    computing the energies, not approximations to those configurations.<br>
    <br>
    <blockquote
cite="mid:CAFs1QTc9JUt2bdraYDWXCvp=2yDjsHda8vdtpe7oQwA1N_-BHw@mail.gmail.com"
      type="cite">
      <br>
      <br>
      Now the question I still have is whether numerical error can be so
      large? The xtc file has a precision of 0.001 nm. Anyway, I will
      test more by using double precision Gromacs and define energy
      groups so that I can compare energy of protein directly between
      original MD and rerun.<br>
      <br>
      <br>
      <br>
      To Mark only<br>
      <br>
      Thanks. Here it is my script for <br>
      <br>
      &nbsp;rerun:&nbsp;&nbsp;&nbsp; mdrun -v -s pbsa.tpr -rerun coor.xtc -e rerun<br>
      superpose:&nbsp; trjconv -s em.tpr -f coor.xtc -o nojump.xtc -pbc
      nojump&nbsp; (em.tpr is generated for energy minimization, protein is
      in the middle of the box)<br>
    </blockquote>
    <br>
    Here you are generating a nojump trajectory file, but you are not
    doing your rerun on it. That could explain some symptoms - you might
    not have whole molecules.<br>
    <br>
    Mark<br>
    <br>
    <blockquote
cite="mid:CAFs1QTc9JUt2bdraYDWXCvp=2yDjsHda8vdtpe7oQwA1N_-BHw@mail.gmail.com"
      type="cite">
      <br>
      rerun .mdp file:<br>
      <br>
      **********************************************************<br>
      <br>
      ; Run parameters<br>
      integrator&nbsp;&nbsp;&nbsp; = md&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; leap-frog integrator<br>
      nsteps&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 50000000&nbsp;&nbsp;&nbsp; ; 100 ns<br>
      dt&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 0.002&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; 2 fs<br>
      ; Output control<br>
      nstxout&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 500000&nbsp;&nbsp;&nbsp; ; save coordinates every 1000 ps<br>
      nstvout&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 500000&nbsp;&nbsp;&nbsp; ; save velocities every 1000 ps<br>
      nstxtcout&nbsp;&nbsp;&nbsp; = 5000&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; xtc compressed trajectory output
      every 1 ps <br>
      nstenergy&nbsp;&nbsp;&nbsp; = 5000&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; save energies every 1 ps<br>
      nstlog&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 5000&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; update log file every 1 ps<br>
      xtc_grps&nbsp;&nbsp;&nbsp; = Protein&nbsp;&nbsp;&nbsp; ; save protein part only<br>
      ; Bond parameters<br>
      continuation&nbsp;&nbsp;&nbsp; = yes&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; Restarting after NPT <br>
      constraint_algorithm = lincs&nbsp;&nbsp;&nbsp; ; holonomic constraints <br>
      constraints&nbsp;&nbsp;&nbsp; = hbonds&nbsp;&nbsp;&nbsp; ; all bonds (even heavy atom-H bonds)
      constrained<br>
      lincs_iter&nbsp;&nbsp;&nbsp; = 1&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; accuracy of LINCS<br>
      lincs_order&nbsp;&nbsp;&nbsp; = 4&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; also related to accuracy<br>
      ; Neighborsearching<br>
      ns_type&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = grid&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; search neighboring grid cels<br>
      nstlist&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 10&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; 20 fs<br>
      rlist&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 0.8&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; short-range neighborlist cutoff (in
      nm)<br>
      rcoulomb&nbsp;&nbsp;&nbsp; = 0.8&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; short-range electrostatic cutoff (in
      nm)<br>
      rvdw&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 1.0&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; short-range van der Waals cutoff (in
      nm)<br>
      ; Electrostatics<br>
      coulombtype&nbsp;&nbsp;&nbsp; = cut-off&nbsp;&nbsp;&nbsp; ; Particle Mesh Ewald for long-range
      electrostatics<br>
      pme_order&nbsp;&nbsp;&nbsp; = 4&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; cubic interpolation<br>
      fourierspacing&nbsp;&nbsp;&nbsp; = 0.12&nbsp;&nbsp;&nbsp; ; grid spacing for FFT<br>
      ; Temperature coupling is on<br>
      tcoupl&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = no&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; modified Berendsen thermostat<br>
      tc-grps&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = System&nbsp;&nbsp;&nbsp; ; two coupling groups - more accurate<br>
      tau_t&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 0.1&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; time constant, in ps<br>
      ref_t&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 300 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; reference temperature, one for each
      group, in K<br>
      ; Pressure coupling is on<br>
      pcoupl&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = no&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; Pressure coupling on in NPT<br>
      pcoupltype&nbsp;&nbsp;&nbsp; = isotropic&nbsp;&nbsp;&nbsp; ; uniform scaling of box vectors<br>
      tau_p&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 2.0&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; time constant, in ps<br>
      ref_p&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 1.0&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; reference pressure, in bar<br>
      compressibility = 4.5e-5&nbsp;&nbsp;&nbsp; ; isothermal compressibility of water,
      bar^-1<br>
      ; Periodic boundary conditions<br>
      pbc&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = no&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; 3-D PBC<br>
      ; Dispersion correction<br>
      ;DispCorr&nbsp;&nbsp;&nbsp; = EnerPres&nbsp;&nbsp;&nbsp; ; account for cut-off vdW scheme<br>
      DispCorr&nbsp;&nbsp;&nbsp; = no<br>
      ; Velocity generation<br>
      gen_vel&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = no&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ; Velocity generation is off <br>
      <br>
      <br>
      <br>
      ; IMPLICIT SOLVENT ALGORITHM<br>
      implicit_solvent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = GBSA <br>
      gb_algorithm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = OBC <br>
      nstgbradii&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 1<br>
      rgbradii&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.8 <br>
      gb_epsilon_solvent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 80<br>
      gb_saltconc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0<br>
      gb_obc_alpha&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 1<br>
      gb_obc_beta&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.8<br>
      gb_obc_gamma&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 4.85<br>
      gb_dielectric_offset&nbsp;&nbsp;&nbsp;&nbsp; = 0.009<br>
      sa_algorithm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = Ace-approximation<br>
      sa_surface_tension&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 2.25936<br>
      <br>
***************************************************************************************<br>
      <br>
      Thanks all.<br>
      <br>
      dawei<br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>