<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      This looks mainly like a bug, but could also partially be a
      feature.<br>
      In practice most force fields have atom types with unique masses,
      so it doesn't matter.<br>
      But this format currently gives the false impression that you
      could change the mass.<br>
      <br>
      Could you file a redmine issue?<br>
      <br>
      Cheers,<br>
      <br>
      Berk<br>
      <br>
      On 03/21/2013 05:24 PM, Wouter Boomsma wrote:<br>
    </div>
    <blockquote
cite="mid:CAPU6s5TNmM_xuQ4aFAW6Oi0at5sJ3Wj64PzN7NjSL5zZuShaZQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div>Hi,</div>
      <div><br>
      </div>
      <div>I'm in the process of implementing a parser for gromacs
        topology&nbsp;</div>
      <div>files, and have a question about the&nbsp;aminoacids.n.tdb and&nbsp;</div>
      <div>aminoacids.c.tdb type files. In the Gromacs parser, it seems&nbsp;</div>
      <div>that when specifying a rule like this:</div>
      <div><br>
      </div>
      <div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[
          NH3+ ]<br>
          [ replace ]<br>
          &nbsp;N &nbsp; &nbsp; &nbsp; &nbsp;N &nbsp; &nbsp; NH3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 14.0027 -0.3<br>
          &nbsp;CA &nbsp; &nbsp; &nbsp; CA &nbsp; &nbsp;CT1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 12.011 &nbsp;0.21<br>
          &nbsp;HA &nbsp; &nbsp; &nbsp; HA &nbsp; &nbsp;HB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.008 &nbsp; &nbsp;0.10<br>
          [ Add ]<br>
          &nbsp;3 &nbsp; &nbsp; &nbsp; 4 &nbsp; &nbsp; &nbsp; H &nbsp; &nbsp; &nbsp; N &nbsp; &nbsp; &nbsp; CA &nbsp; &nbsp; &nbsp;C<br>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HC &nbsp; &nbsp; &nbsp;1.008 &nbsp; 0.33 &nbsp; &nbsp;-1<br>
          [ delete ]<br>
          &nbsp;HN</blockquote>
      </div>
      <div><br>
      </div>
      <div>The mass specification - for instance the 14.0027, is not</div>
      <div>used in the generation of the topology file, in contrast to</div>
      <div>the charge value. I'm a little uncertain whether this is a</div>
      <div>feature or a bug. Does anyone have any insight in this</div>
      <div>matter?</div>
      <div><br>
      </div>
      <div>Code wise, the responsible lines are in the pdb2top.c file,&nbsp;</div>
      <div>in the name2type function:</div>
      <div><br>
      </div>
      <div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at-&gt;atom[i].type =
          restp[resind].atom[j].type;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at-&gt;atom[i].q &nbsp; &nbsp;= restp[resind].atom[j].q;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at-&gt;atom[i].m &nbsp; &nbsp;=
          get_atomtype_massA(restp[resind].atom[j].type,</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; atype);</div>
      </div>
      <div><br>
      </div>
      <div>At this point in the code restp[resind].atom[j].m actually</div>
      <div>contains the modified mass, but this is not copied to the</div>
      <div>"at" object, which is later written to the topology file.&nbsp;</div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div>Wouter</div>
      <div><br>
      </div>
      <br clear="all">
      <div><br>
      </div>
      <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>