<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>I just ran the 4.0 version of pdb2gmx on a multi-chain pdb file<br>and posre.itp does not appear anywhere.<br><br>From the file names it seems that the files are non-standard<br>and made of modified by hand.<br>So maybe you somehow modified a file with posre.itp in it?<br><br>Berk<br><br><br>&gt; Date: Wed, 5 Nov 2008 10:11:03 -0500<br>&gt; From: jalemkul@vt.edu<br>&gt; To: nazoia@det.uminho.pt; gmx-users@gromacs.org<br>&gt; Subject: Re: [gmx-users] Problems with grompp and posre.itp in gromacs 4.0<br>&gt; CC: <br>&gt; <br>&gt; <br>&gt; <br>&gt; Nuno Azoia wrote:<br>&gt; &gt; On Wed, 2008-11-05 at 07:57 -0500, Justin A. Lemkul wrote:<br>&gt; &gt;&gt; Please remember to keep all correspondence on the list for archiving purposes. <br>&gt; &gt;&gt; Also, others out there may have information to contribute.<br>&gt; &gt; <br>&gt; &gt; Sorry about that. I just press Reply and I didn't check the e-mail<br>&gt; &gt; address.<br>&gt; &gt; <br>&gt; &gt; I've solved the problem with your help.<br>&gt; &gt; <br>&gt; &gt; I've tried what you have told me but I get the same error message.<br>&gt; &gt; Calling an .itp file within a .itp file always works with me (in version<br>&gt; &gt; 3.3.1), but it makes more sense the way you describe, declaring<br>&gt; &gt; everything in the .top file.<br>&gt; &gt; <br>&gt; &gt; The problem seems to be the posre.itp file itself. Even with the 3 files<br>&gt; &gt; I've told you (posre_A.itp, posre_B.itp and posre_C.itp), grompp needs a<br>&gt; &gt; posre.itp file. So the solution was to create a empty posre.itp file.<br>&gt; &gt; Now it's clear to me that my first option (see below the description of<br>&gt; &gt; the first posre.itp file I've created) makes no sense because by that<br>&gt; &gt; way I was calling each posre_*.itp file twice: once in the .top file and<br>&gt; &gt; the other in posre.itp file. Grommp was reading the posre.itp file<br>&gt; &gt; first, without any reference to any molecule, and it just don't work.<br>&gt; &gt; <br>&gt; <br>&gt; Well, I'm glad it worked, but having to create an empty posre.itp file sounds a <br>&gt; bit nonsensical to me.  Maybe the developers can help us out - has something <br>&gt; within grompp changed that makes a posre.itp file explicitly necessary?<br>&gt; <br>&gt; -Justin<br>&gt; <br>&gt; &gt; Thank you very much!<br>&gt; &gt; <br>&gt; &gt; Nuno Azoia<br>&gt; &gt; <br>&gt; &gt;&gt; Nuno Azoia wrote:<br>&gt; &gt;&gt;&gt; Hi Justin. Tank you for your answer!<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Ok! I agree with you, and I'm doing something wrong. I just can<br>&gt; &gt;&gt;&gt; understand what. Can you please help me a little more.<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; In my .top file I have this lines<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; -----------------------------------------------------------<br>&gt; &gt;&gt;&gt; ; Include chain topologies<br>&gt; &gt;&gt;&gt; #include "krt_spd_C.itp"<br>&gt; &gt;&gt;&gt; #include "krt_spd_A.itp"<br>&gt; &gt;&gt;&gt; #include "krt_spd_B.itp<br>&gt; &gt;&gt;&gt; -----------------------------------------------------------<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt; That should be fine.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; The krt_spd_C.itp is the topology of a peptide with 244 atoms.<br>&gt; &gt;&gt;&gt; krt_spd_A.itp and krt_spd_B.itp are peptides with 435 and 418 atoms,<br>&gt; &gt;&gt;&gt; respectively. In the last line of each .itp file I have something like<br>&gt; &gt;&gt;&gt; this (the letter changes with the corresponding file name)<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; -----------------------------------------------------------<br>&gt; &gt;&gt;&gt; ; Include Position restraint file<br>&gt; &gt;&gt;&gt; #ifdef POSRES<br>&gt; &gt;&gt;&gt; #include "posre_A.itp"<br>&gt; &gt;&gt;&gt; #endif<br>&gt; &gt;&gt;&gt; -----------------------------------------------------------<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt; This might be the problem.  You're calling an .itp file from within an .itp <br>&gt; &gt;&gt; file.  That may work, but I've never tried it.  Each .itp file should provide <br>&gt; &gt;&gt; the parameters for a single molecule, no more.  What I would try is the following:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; ; Include chain topologies<br>&gt; &gt;&gt; #include "krt_spd_C.itp"<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; #ifdef POSRES_C<br>&gt; &gt;&gt; #include "posre_C.itp"<br>&gt; &gt;&gt; #endif<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; #include "krt_spd_A.itp"<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; #ifdef POSRES_A<br>&gt; &gt;&gt; #include "posre_A.itp"<br>&gt; &gt;&gt; #endif<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; #include "krt_spd_B.itp"<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; #ifdef POSRES_B<br>&gt; &gt;&gt; #include "posre_B.itp"<br>&gt; &gt;&gt; #endif<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; That way, each chain topology is followed by its corresponding position <br>&gt; &gt;&gt; restraint file, under the appropriate [ molecule ] definition.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; -Justin<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Each posre_*.itp file has positions restraints for all the atoms in the<br>&gt; &gt;&gt;&gt; peptide. For instance, posre_A.itp is something like this:<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; -----------------------------------------------------------<br>&gt; &gt;&gt;&gt; ; In this topology include file, you will find position restraint<br>&gt; &gt;&gt;&gt; ; entries for all the heavy atoms in your original pdb file.<br>&gt; &gt;&gt;&gt; ; This means that all the protons which were added by pdb2gmx are<br>&gt; &gt;&gt;&gt; ; not restrained.<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; [ position_restraints ]<br>&gt; &gt;&gt;&gt; ; atom  type      fx      fy      fz<br>&gt; &gt;&gt;&gt;      1     1  1000  1000  1000<br>&gt; &gt;&gt;&gt;      5     1  1000  1000  1000<br>&gt; &gt;&gt;&gt;      6     1  1000  1000  1000<br>&gt; &gt;&gt;&gt; (...)<br>&gt; &gt;&gt;&gt;    430     1  1000  1000  1000<br>&gt; &gt;&gt;&gt;    433     1  1000  1000  1000<br>&gt; &gt;&gt;&gt;    434     1  1000  1000  1000<br>&gt; &gt;&gt;&gt;    435     1  1000  1000  1000<br>&gt; &gt;&gt;&gt; ------------------------------------------------------------<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Ok. In version 3.3.1 that's all I used to do. But now version 4.0<br>&gt; &gt;&gt;&gt; demands a posre.itp file, an so I've created this one, and at least by<br>&gt; &gt;&gt;&gt; this way grompp are reading my files<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; ------------------------------------------------------------<br>&gt; &gt;&gt;&gt; ; Include posre topology<br>&gt; &gt;&gt;&gt; #include "posre_A.itp"<br>&gt; &gt;&gt;&gt; #include "posre_B.itp"<br>&gt; &gt;&gt;&gt; #include "posre_C.itp"<br>&gt; &gt;&gt;&gt; ------------------------------------------------------------<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; That's why I can not understand what I'm doing wrong.<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Another thing that I'm finding surprising is that, with two different<br>&gt; &gt;&gt;&gt; systems, in two different simulations, I get the same error in the 15th<br>&gt; &gt;&gt;&gt; position.<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Thank you for your time.<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Nuno Azoia<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; On Tue, 2008-11-04 at 13:14 -0500, Justin A. Lemkul wrote:<br>&gt; &gt;&gt;&gt;&gt; Quoting Nuno Azoia &lt;nazoia@det.uminho.pt&gt;:<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; Hi!<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; I'm having problems with grompp in version 4.0.<br>&gt; &gt;&gt;&gt;&gt;&gt; When I attempt to run grompp I get this message. I've tried with two<br>&gt; &gt;&gt;&gt;&gt;&gt; different systems, but the message is exactly the same<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; -------------------------------------------------------<br>&gt; &gt;&gt;&gt;&gt;&gt; Program grompp, VERSION 4.0<br>&gt; &gt;&gt;&gt;&gt;&gt; Source code file: toppush.c, line: 1196<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; Fatal error:<br>&gt; &gt;&gt;&gt;&gt;&gt; [ file posre_A.itp, line 16 ]:<br>&gt; &gt;&gt;&gt;&gt;&gt; Atom index (15) in position_restraints out of bounds (1-14).<br>&gt; &gt;&gt;&gt;&gt;&gt; This probably means that you have inserted topology section<br>&gt; &gt;&gt;&gt;&gt;&gt; "position_restraints"<br>&gt; &gt;&gt;&gt;&gt;&gt; in a part belonging to a different molecule than you intended to.<br>&gt; &gt;&gt;&gt;&gt;&gt; In that case move the "position_restraints" section to the right<br>&gt; &gt;&gt;&gt;&gt;&gt; molecule.<br>&gt; &gt;&gt;&gt;&gt;&gt; -------------------------------------------------------<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; I'm not understanding why is "Atom index (15)" out of bounds. The range<br>&gt; &gt;&gt;&gt;&gt;&gt; (1-14), where did it came from?<br>&gt; &gt;&gt;&gt;&gt; grompp is finding a 15th atom to which it is trying to apply position<br>&gt; &gt;&gt;&gt;&gt; restraints, but it is unable to.<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; It seems that I just can only have 14 position_restaints conditions, but<br>&gt; &gt;&gt;&gt;&gt;&gt; this don't make any sense to me. Can anyone help with this? What do I<br>&gt; &gt;&gt;&gt;&gt;&gt; have to do to solve this problem?<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; The error message is pretty clear - you have inserted #include "posre.itp"<br>&gt; &gt;&gt;&gt;&gt; within the incorrect molecule definition (i.e., it is in the wrong order or<br>&gt; &gt;&gt;&gt;&gt; wrong section in the .top).<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; -Justin<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; Tank you<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; Nuno Azoia<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; --<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; Nuno Gonçalo Azoia Lopes<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; Laboratório de Investigação em Acabamento<br>&gt; &gt;&gt;&gt;&gt;&gt; Departamento de Engenharia Textil<br>&gt; &gt;&gt;&gt;&gt;&gt; Universidade do Minho<br>&gt; &gt;&gt;&gt;&gt;&gt; Campus de Azurém<br>&gt; &gt;&gt;&gt;&gt;&gt; 4800-058 Guimarães<br>&gt; &gt;&gt;&gt;&gt;&gt; Portugal<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; Tel: +351 253 510 280 - Ext: 517 289<br>&gt; &gt;&gt;&gt;&gt;&gt; Fax: +351 253 510 293<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; Mobile: +351 965 382 487<br>&gt; &gt;&gt;&gt;&gt;&gt; E-mail: nazoia@det.uminho.pt<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;&gt; _______________________________________________<br>&gt; &gt;&gt;&gt;&gt;&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; &gt;&gt;&gt;&gt;&gt; http://www.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt;&gt;&gt;&gt;&gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; &gt;&gt;&gt;&gt;&gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; &gt;&gt;&gt;&gt;&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt;&gt;&gt;&gt;&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; ========================================<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; Justin A. Lemkul<br>&gt; &gt;&gt;&gt;&gt; Graduate Research Assistant<br>&gt; &gt;&gt;&gt;&gt; Department of Biochemistry<br>&gt; &gt;&gt;&gt;&gt; Virginia Tech<br>&gt; &gt;&gt;&gt;&gt; Blacksburg, VA<br>&gt; &gt;&gt;&gt;&gt; jalemkul@vt.edu | (540) 231-9080<br>&gt; &gt;&gt;&gt;&gt; http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin/<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; ========================================<br>&gt; &gt;&gt;&gt;<br>&gt; &gt; <br>&gt; &gt; <br>&gt; <br>&gt; -- <br>&gt; ========================================<br>&gt; <br>&gt; Justin A. Lemkul<br>&gt; Graduate Research Assistant<br>&gt; Department of Biochemistry<br>&gt; Virginia Tech<br>&gt; Blacksburg, VA<br>&gt; jalemkul[at]vt.edu | (540) 231-9080<br>&gt; http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin<br>&gt; <br>&gt; ========================================<br>&gt; _______________________________________________<br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://www.gromacs.org/mailman/listinfo/gmx-users<br>&gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; Please don't post (un)subscribe requests to the list. Use the <br>&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>