<div>Hi,<br><br>Thanks so much for the prompt help.<br><br>Yes, I did realize
that methanol as solvent was not updated in the .top file. I had to fix the
.top file manually.<br><br>When I add ions using genion I replace
methanol.<br><br>As a test I tried setting up the whole system with the change
that instead of 8 hydroxide ions I added 8 chloride ions.<br>And everything
works perfectly!<br><br>So, I think its something with the hyrdroxide
ion.<br><br>I will try adding hydroxide ions using genbox.<br>I think then I
need to treat it as a charged residue and have it included in the .rtp file,
correct?<br><br>Thanks,<br>Shivangi<br><br>Shivangi Nangia<br>Garrison
Group<br>Graduate Student<br>201A Chemistry Building<br>University Park PA
16802<br><br><br>SHIVANGI NANGIA wrote:<br>&gt; Hi again,<br>&gt;<br>&gt; I
have the following:<br>&gt;<br>&gt; I have not changed anything in ffG53a6.atp
and .rtp<br>&gt; As suggested by gmx users, I have the following in the
ions,itp file<br>&gt;<br>&gt; [ moleculetype ]<br>&gt;&nbsp;&nbsp; ;
molname&nbsp;&nbsp; nrexcl<br>&gt; OH&nbsp;&nbsp;&nbsp; 1<br>&gt;<br>&gt; [
atoms ]<br>&gt; ; id&nbsp; at type&nbsp; res nr&nbsp;&nbsp; residu name at
name&nbsp; cg nr charge<br>&gt;&nbsp;&nbsp; 1&nbsp; OH 1&nbsp;
OH&nbsp;&nbsp;&nbsp; OH&nbsp; 1&nbsp; 0<br>&gt;&nbsp;&nbsp; 1&nbsp; OW 1&nbsp;
OW&nbsp;&nbsp;&nbsp; OW&nbsp; 1 -1<br>&gt;<br>&gt;<br>&gt; I executed the
following commands:<br>&gt;<br>&gt; (a) pdb2gmx -f his8.pdb -ignh -ter -his -p
topol.top -o his8.gro<br>&gt; (b) editconf -f his8.gro -box 5 5 5 -o
his8box.gro<br>&gt; (c) genbox -cp his8box.gro&nbsp; -ci&nbsp; 1methanol.gro
-nmol 1800 -o his8_meoh.gro -p topol.top<br><br>Were all 1800 methanol
molecules properly inserted here?&nbsp; Note that genbox does not update the
topology automatically for any molecules other than water.<br><br>&gt; (d)
grompp -f ions.mdp -c his8_meoh.gro -p topol.top -o ions.tpr -p
topol.top<br>&gt; (e) genion -s ions.tpr -o added_ions.gro -p topol.top -pname
NA -nname OH -nn 8<br><br>Per the genion help information, it is not
well-suited to inserting polyatomic ions.&nbsp; Also, what are you choosing to
replace here?&nbsp; genion is designed to replace water molecules with
monoatomic ions, but you haven't added any water yet.&nbsp; If you're simply
replacing elements of the "System" group, you've probably got fractional
species somewhere.&nbsp; I would be willing to bet that this process is what is
causing your problem.&nbsp; Check the contents of the coordinate file and
topology before and after genion, and you will probably find the problem.
Solution: don't use genion.&nbsp; Use genbox -ci -nmol to add your 8 OH
molecules.<br><br>-Justin<br><br>&gt; (f)&nbsp; genbox -cp added_ions.gro&nbsp;
-cs tip4p.gro&nbsp; -o his8_meohi_wat.gro -p topol.top<br>&gt;&nbsp; Commands
(a)-(f), all goes smooth.<br>&gt;<br>&gt; When I do the following<br>&gt;&nbsp;
grompp -f minim.mdp -c his8_meohi_wat.gro -p topol.top -o
em.tpr<br>&gt;<br>&gt; I run into error which says moleculetype OH not
found.<br>&gt;<br>&gt;<br>&gt; Added the following specifically in .top
file<br>&gt;&nbsp; [ moleculetype ]<br>&gt;&nbsp;&nbsp; ; molname&nbsp;&nbsp;
nrexcl<br>&gt;&nbsp;&nbsp; OH&nbsp;&nbsp;&nbsp; 1<br>&gt;<br>&gt;&nbsp;&nbsp;
[atoms]<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; OH&nbsp;&nbsp;&nbsp;&nbsp;
OH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0.21&nbsp;&nbsp;&nbsp;&nbsp; 1.008&nbsp;&nbsp;&nbsp;&nbsp;
;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; OH&nbsp;&nbsp;&nbsp;&nbsp;
OW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-1.21&nbsp;&nbsp;&nbsp; 15.99994&nbsp;&nbsp; ;<br>&gt;&nbsp;&nbsp; [ bonds
]<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; OW&nbsp;&nbsp; HW1&nbsp;&nbsp;&nbsp;
gb_38<br>&gt;<br>&gt; Going back to the command<br>&gt; grompp -f minim.mdp -c
his8_meohi_wat.gro -p topol.top -o em.tpr<br>&gt;<br>&gt; runs into different
error as mentioned earlier : Fatal error: number of coordinates in coordinate
file (5his8_meohi_wat.gro, 12487) does not match topology (topol.top,
12519)<br>&gt;<br>&gt; The .top file includes tip4p.itp, methanol.itp and
ions.itp.<br>&gt;<br>&gt; So I am totally confused as to where I am going
wrong.<br>&gt; Please guide.<br>&gt;<br>&gt; Thanks,<br>&gt;
Shivangi<br>&gt;<br>&gt;<br>&gt;<br>&gt; Shivangi Nangia<br>&gt; Garrison
Group<br>&gt; Graduate Student<br>&gt; 201A Chemistry Building<br>&gt;
University Park PA 16802<br>&gt;<br>&gt;&nbsp;
&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Hello,<br>&gt;&nbsp;
&gt;<br>&gt;&nbsp; &gt; Thanks a lot for the suggestion.<br>&gt;&nbsp;
&gt;<br>&gt;&nbsp; &gt; I think I made some progress but I am not there
yet.<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; I added the following in the
ions.itp file<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; [ moleculetype
]<br>&gt;&nbsp; &gt; ; molname&nbsp;&nbsp; nrexcl<br>&gt;&nbsp; &gt;
OH&nbsp;&nbsp;&nbsp; 1<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; [ atoms
]<br>&gt;&nbsp; &gt; ; id&nbsp; at type&nbsp; res nr&nbsp;&nbsp; residu name at
name&nbsp; cg nr charge<br>&gt;&nbsp; &gt; 1&nbsp; OH 1&nbsp;
OH&nbsp;&nbsp;&nbsp; OH&nbsp; 1&nbsp; 0<br>&gt;&nbsp; &gt; 1&nbsp; OW 1&nbsp;
OW&nbsp;&nbsp;&nbsp; OW&nbsp; 1 -1<br>&gt;&nbsp; &gt;<br>&gt;&nbsp;
&gt;<br>&gt;&nbsp; &gt; Still I ran into the same error that it could not find
moleculetype OH.<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; Than I specifically
added the following to the .top file<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; [
moleculetype ]<br>&gt;&nbsp; &gt; ; molname&nbsp;&nbsp; nrexcl<br>&gt;&nbsp;
&gt; OH&nbsp;&nbsp;&nbsp; 1<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;
[atoms]<br>&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; OH&nbsp;&nbsp;&nbsp;&nbsp;
OH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0.21&nbsp;&nbsp;&nbsp;&nbsp; 1.008&nbsp;&nbsp;&nbsp;&nbsp; ;<br>&gt;&nbsp;
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; OH&nbsp;&nbsp;&nbsp;&nbsp;
OW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-1.21&nbsp;&nbsp;&nbsp; 15.99994&nbsp;&nbsp; ;<br>&gt;&nbsp; &gt; [ bonds
]<br>&gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; OW&nbsp;&nbsp; HW1&nbsp;&nbsp;&nbsp;
gb_38<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; This helped.<br>&gt;&nbsp; &gt;
However, there is new error I am running into which says:<br>&gt;&nbsp; &gt;
Fatal error: number of coordinates in coordinate file (5his8_meohi_wat.gro,
12487) does not match topology (topol.top, 12519)<br>&gt;&nbsp;
&gt;<br>&gt;&nbsp; &gt; I am trying to add 8 hydroxide ions in my
methanol-water system.<br>&gt;&nbsp; &gt;<br>&gt;<br>&gt; And how are you
attempting this?&nbsp; What command(s) did you give?&nbsp; What subsequent
modifications to your topology did you make?<br>&gt;<br>&gt; The generic
solution to your problem can be found here:<br>&gt;<br>&gt;
http://www.gromacs.org/Documentation/Errors#Number_of_coordinates_in_coordinate_file_does_not_match_topology<br>&gt;<br>&gt;&nbsp; &gt; The confusion I have is:<br>&gt;&nbsp; &gt; The .gro file has OH but is gromacs really accounting OH as 2 atoms?<br>&gt;<br>&gt; Gromacs assigns parameters to the molecules it finds based on the entries in the respective [moleculetypes].&nbsp; If you tell grompp or any other program that the [moleculetype] "OH" is comprised of two atoms, then there's no reason to believe&nbsp; anything is wrong.<br>&gt;<br>&gt;&nbsp; &gt; Also, the difference (12519-12487) is greater than 8.<br>&gt;&nbsp; &gt;<br>&gt;<br>&gt; Without some context as to what you're doing and what you've done up to this point, this information does not lead to any useful solution.&nbsp; The number of molecules (either methanol or OH) in your topology does not match the contents of your coordinate file.<br>&gt;<br>&gt; -Justin<br>&gt;<br>&gt;&nbsp; &gt; Kindly help.<br>&gt;&nbs!
 p; &gt;<br>&gt;&nbsp; &gt; Thanks,<br>&gt;&nbsp; &gt; Shivangi<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; Shivangi Nangia<br>&gt; ! &gt; Garrison Group<br>&gt;&nbsp; &gt; Graduate Student<br>&gt;&nbsp; &gt; 201A Chemistry Building<br>&gt;&nbsp; &gt; University Park PA 16802<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; On 22/03/2011 7:44 AM, SHIVANGI NANGIA wrote:<br>&gt;&nbsp; &gt;&nbsp; &gt; Hello,<br>&gt;&nbsp; &gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;&nbsp; &gt; I am new gromacs user.<br>&gt;&nbsp; &gt;&nbsp; &gt; I am trying to set up a water-methanol system with few hyrdroxide ions.<br>&gt;&nbsp; &gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;&nbsp; &gt; Since hyrdroxide ion does not already exist in gromacs database, I defined the following in the .rtp file ( I am using ffG53a6)<br>&gt;&nbsp; &gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;&nbsp; &gt; [ OH ]<br>&gt;&nbsp; &gt;&nbsp; &gt;&nbsp; [ atoms ]<br>&gt;&nbsp; &gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; OW&nbsp;&nbsp;&nbsp; OW&n!
 bsp;&nbsp;&nbsp; -1.41000&nbsp;&nbsp;&nbsp;&nbsp; 0<br>&gt;&nb!
 sp; &gt;
&nbsp; &gt;&nbsp;&nbsp; HW1&nbsp;&nbsp;&nbsp;&nbsp; H&nbsp;&nbsp;&nbsp;&nbsp; 0.41000&nbsp;&nbsp;&nbsp;&nbsp; 0<br>&gt;&nbsp; &gt;&nbsp; &gt;&nbsp; [ bonds ]<br>&gt;&nbsp; &gt;&nbsp; &gt;&nbsp;&nbsp;&nbsp; OW&nbsp;&nbsp; HW1&nbsp;&nbsp;&nbsp; gb_38<br>&gt;&nbsp; &gt;&nbsp; &gt;&nbsp; [ angles ]<br>&gt;&nbsp; &gt;&amp;! nbsp; &gt; ;&nbsp; ai&nbsp;&nbsp;&nbsp; aj&nbsp;&nbsp;&nbsp; a! k &amp; nbsp; gromos typpe<br>&gt;&nbsp; &gt;&nbsp; &gt;&nbsp; [ impropers ]<br>&gt;&nbsp; &gt;&nbsp; &gt; ;&nbsp; ai&nbsp;&nbsp;&nbsp; aj&nbsp;&nbsp;&nbsp; ak&nbsp;&nbsp;&nbsp; al&nbsp;&nbsp; gromos type<br>&gt;&nbsp; &gt;&nbsp; &gt;&nbsp; [ dihedrals ]<br>&gt;&nbsp; &gt;&nbsp; &gt; ;&nbsp; ai&nbsp;&nbsp;&nbsp; aj&nbsp;&nbsp;&nbsp; ak&nbsp;&nbsp;&nbsp; al&nbsp;&nbsp; gromos type<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; That's only useful for pdb2gmx when generating .top files.<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;&nbsp; &gt; I also included OH in the .atp file ( I realise that hydroxide ion is NOT a!
 n atom, its a diatomic anion, I was just trying!)<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; Don't. The .atp defines *atom* types.<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;&nbsp; &gt; I ran into the error: No such moleculetype OH<br>&gt;&nbsp; &gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;&nbsp; &gt; I further included information in the ions.itp as follows:<br>&gt;&nbsp; &gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;&nbsp; &gt; [ moleculetype ]<br>&gt;&nbsp; &gt;&nbsp; &gt; ; molname&nbsp;&nbsp; nrexcl<br>&gt;&nbsp; &gt;&nbsp; &gt; OH&nbsp;&nbsp;&nbsp; 1<br>&gt;&nbsp; &gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;&nbsp; &gt; [ atoms ]<br>&gt;&nbsp; &gt;&nbsp; ! &gt; ; id&nbsp; at type&nbsp; res nr&nbsp;&nbsp; residu name at name&nbsp; cg nr charge<br>&gt;&nbsp; &gt;&nbsp; &gt; 1&nbsp; OH 1&nbsp; OH&nbsp;&nbsp;&nbsp; OH&nbsp; 1 -1<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; Use two atoms, like you did for your .rtp entry.<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt;&nbsp; &gt; The genion adds the "OH"&nbsp; in the .gro file and al!
 so the topol.top but when I try to minimize the system using<b!
 r>&gt;&n
bsp; &gt;&nbsp; &gt; grompp -f minim.mdp -c 5his8_meohi_wat.gro -p topol.top -o em.tpr<br>&gt;&nbsp; &gt;&nbsp; &gt; I am still running into the same error, No such moleculetype OH.<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; Your .top still does not have a functional [ moleculetype ] OH. You're probably not using the #include "ions.itp"&nbsp; mechanism correctly.<br>&gt;&nbsp; &gt;<br>&gt;&nbsp; &gt; Mark<br>&gt;&nbsp; &gt;<br>&gt;<br>&gt; -- ========================================<br>&gt;<br>&gt; Justin A. Lemkul<br>&gt; Ph.D. Candidate<br>&gt; ICTAS Doctoral Scholar<br>&gt; MILES-IGERT Trainee<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.beva! nlab.biochem.vt.edu/Pages/Personal/justin<br>&gt;<br>&gt; =============! ======== ===================<br>&gt; -- gmx-users mailing list&nbsp;&nbsp;&nbsp; gmx-users@gromacs.org<br>&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&g!
 t; Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/Search before posting!<br>&gt; Please don't post (un)subscribe requests to the list. Use the www interface or send it to gmx-users-request@gromacs.org.<br>&gt; Can't post? Read http://www.gromacs.org/Support/Mailing_Lists<br>&gt;<br>&gt;<br><br>-- ========================================<br><br>Justin A. Lemkul<br>Ph.D. Candidate<br>ICTAS Doctoral Scholar<br>MILES-IGERT Trainee<br>Department of Biochemistry<br>Virginia Tech<br>Blacksburg, VA<br>jalemkul[at]vt.edu | (540) 231-9080<br>http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin<br><br>========================================<br>-- gmx-users mailing list&nbsp;&nbsp;&nbsp; gmx-users@gromacs.org<br>http://lists.gromacs.org/mailman/listinfo/gmx-users<br>Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/Search before posting!<br>Please don't post (un)subscribe requests to the list. Use the www interface or send it to g!
 mx-users-request@gromacs.org.<br>Can't post? Read http://www.g!
 romacs.o
rg/Support/Mailing_Lists<br><br><br></div>