<br><br><div class="gmail_quote">On Fri, Feb 1, 2013 at 7:40 PM, Emanuel Peter <span dir="ltr">&lt;<a href="mailto:Emanuel.Peter@chemie.uni-regensburg.de" target="_blank">Emanuel.Peter@chemie.uni-regensburg.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px">I would try in the hdb entry  <br><br>H12A C13 N C12 <br>
H13B C13 N C14<br>H13C C13 N C15<br><br>or <br><br>H12A C13 C12 C14 <br>H13B C13 C12 C15<br>H13C C13 N C16<br><br>and then afterwards minimize.....<br><br>Others might know a better way. <br>This way was (for me) the easiest way.<br>
After minimization I got a reasonable protonation.<br></div></blockquote><div><br></div><div>Even if you can abuse pdb2gmx to put three hydrogens in like this, you still have to get lucky that EM can sort out the problems. If it&#39;s only a naming problem, it&#39;s much more reliable to rename the atoms...</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px">Best and good luck,<br><br>Emanuel<br>
<br>&gt;&gt;&gt; Landry Charlier &lt;<a href="mailto:landry.charlier@univ-montp1.fr" target="_blank">landry.charlier@univ-montp1.fr</a>&gt; 02/01/13 12:51 AM &gt;&gt;&gt;<div><div class="h5"><br><br>Hello,<br><br>I have some problems in order to automatically add hydrogen to lipids  <br>
with charmm36 force field. Indeed, when several hydrogen have to be  <br>added to the same atom, the command pdb2gmx -ignh or g_protonate add  <br>them with the same name but with the last number incremented by 1  <br>thanks to the .hdb file.<br>
<br>Example :  for charmm36, the hydrogens added to the CB atom of ARG are  <br>named HB1 &amp; HB2 thanks to the line &quot;2  6  HB  CB  CG  CA&quot; in the  <br>aminoacids.hdb file.<br><br>For lipids, the hydrogen names differ by a letter. H13A, H13B H13C are  <br>
linked to C13 in POPC in charmm36 for example.<br><br>I would like to modify g_protonate or pdb2gmx in order to add hydrogen  <br>with a specific name like that:<br>- If only 1 name is written in hdb file and several atoms have to be  <br>
added, the hydrogen names have been incremented by 1 as it&#39;s by  <br>default (see the example of Arg above).<br>- If there are as many names as the number of hydrogen to add, pdb2gmx  <br>and/or g_protonate will choose these names. The hdb file should be  <br>
like this : 3       4       H13A,H13B,H13C    C13     N       C12<br><br>But I check the g_protonate and pdb2gmx files in the source code and I  <br>am not enough good in programming for modify them.<br><br>Could you help me please?<br>
</div></div></div></blockquote><div><br></div><div>You&#39;ve not been completely clear on why you need the atoms named differently, so I&#39;ll assume you need some output file from pdb2gmx to have atom names that match something else. If so, it is much easier to use sed three times to do the necessary changes than to think about touching C code. For example:</div>
<div>sed -e &#39;s/H131/H13A&#39; infile &gt; outfile</div><div><br></div><div>Since you&#39;ve got a script calling pdb2gmx anyway (hint, hint), you don&#39;t even have to remember the magic words once you write them!</div>
<div><br></div><div>Mark</div></div>