Thank you for your reply, Tsjerk!<br><br>I used gmxcheck, and got exactly the same number of atoms in xtc file as #proteinAtoms+#calciumAtoms+#chlorideAtom.<br><br>I also checked my mdp file. It does have &quot;xtc_grps = protein Ca Cl&quot;. <br>
<br>In previous similar runs, I successfully wrote these atoms out. The only difference is that, in previous runs, I added some Na+ ions too. At the end of the .top file, I had:<br>Protein_A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>Na&nbsp; 15<br>Cl 12<br>
SOL 7254<br>And, in mdp file, I had: xtc_grps = protein Ca Na Cl<br><br>But this time, I didn&#39;t add any Na+ ion. After genion step, the end of the .top file became:<br>Protein_A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>SOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7280<br>Na&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>
Cl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>In mdp file, I had: xtc_grps = protein Ca Cl<br><br>Will this difference cause the problem? How should I solve it? Thanks a lot!<br><br>Peggy<br><br><div class="gmail_quote">On Thu, Apr 10, 2008 at 12:22 AM, Tsjerk Wassenaar &lt;<a href="mailto:tsjerkw@gmail.com">tsjerkw@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Peggy,<br>
<br>
I suspect that in your .mdp file you have a line<br>
<br>
xtc-grps = Protein<br>
<br>
This means that the xtc file will only contain those atoms which<br>
gromacs reckognizes as amino acids, based on the list in the file<br>
aminoacids.dat. Your .tpr file which is used to base the index on,<br>
contains all atoms, including the Ca/Cl. You can easily check how many<br>
atoms there are in your xtc file using gmxcheck and compare this to<br>
the groups you see based on the .tpr as you&#39;ve given. If you need the<br>
calcium and chloride in the trajectory while you&#39;ve only written<br>
Protein, you&#39;ll have to redo the simulation, changing the xtc-grps<br>
line in the .mdp, copy the file aminoacids.dat and add the ions to it<br>
or use an index file when running grompp. Of course you can first have<br>
a look at teh .trr file which contains all atoms by definition, but<br>
that is usually written much less frequent.<br>
<br>
Cheers,<br>
<br>
Tsjerk<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Apr 10, 2008 at 8:27 AM, Peggy Yao &lt;<a href="mailto:peggy.yao@gmail.com">peggy.yao@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; In my system, I have 1 protein, 2 calcium atoms, and 1 chloride atom. When I<br>
&gt; used trjconv to write the protein out as PDB file, it worked fine. However,<br>
&gt; when I tried to write the calciums and chloride out using the same command<br>
&gt; (but selecting different group to write out), I got the following fatal<br>
&gt; error:<br>
&gt;<br>
&gt; for calcium:<br>
&gt; Select group for output<br>
&gt; Opening library file /usr/share/gromacs/top/aminoacids.dat<br>
&gt; Group &nbsp; &nbsp; 0 ( &nbsp; &nbsp; &nbsp;System) has 22737 elements<br>
&gt; Group &nbsp; &nbsp; 1 ( &nbsp; &nbsp; Protein) has &nbsp; 894 elements<br>
&gt; Group &nbsp; &nbsp; 2 ( &nbsp; Protein-H) has &nbsp; 707 elements<br>
&gt; &nbsp;Group &nbsp; &nbsp; 3 ( &nbsp; &nbsp; C-alpha) has &nbsp; &nbsp;89 elements<br>
&gt; Group &nbsp; &nbsp; 4 ( &nbsp; &nbsp;Backbone) has &nbsp; 267 elements<br>
&gt; Group &nbsp; &nbsp; 5 ( &nbsp; MainChain) has &nbsp; 357 elements<br>
&gt; Group &nbsp; &nbsp; 6 (MainChain+Cb) has &nbsp; 440 elements<br>
&gt; Group &nbsp; &nbsp; 7 ( MainChain+H) has &nbsp; 447 elements<br>
&gt; &nbsp;Group &nbsp; &nbsp; 8 ( &nbsp; SideChain) has &nbsp; 447 elements<br>
&gt; Group &nbsp; &nbsp; 9 ( SideChain-H) has &nbsp; 350 elements<br>
&gt; Group &nbsp; &nbsp;10 ( Prot-Masses) has &nbsp; 894 elements<br>
&gt; Group &nbsp; &nbsp;11 ( Non-Protein) has 21843 elements<br>
&gt; Group &nbsp; &nbsp;12 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Ca) has &nbsp; &nbsp; 2 elements<br>
&gt; &nbsp;Group &nbsp; &nbsp;13 ( &nbsp; &nbsp; &nbsp; &nbsp; SOL) has 21840 elements<br>
&gt; Group &nbsp; &nbsp;14 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Cl) has &nbsp; &nbsp; 1 elements<br>
&gt; Group &nbsp; &nbsp;15 ( &nbsp; &nbsp; &nbsp; Other) has 21843 elements<br>
&gt; Select a group: 12<br>
&gt; Selected 12: &#39;Ca&#39;<br>
&gt; Reading frame &nbsp; &nbsp; &nbsp; 0 time &nbsp; &nbsp;0.000<br>
&gt; &nbsp;Precision of traj.xtc is 0.001 (nm)<br>
&gt; Segmentation fault &nbsp;3 time &nbsp;150.000 &nbsp; &nbsp;-&gt; &nbsp;frame &nbsp; &nbsp; &nbsp;3 time &nbsp;150.000<br>
&gt;<br>
&gt; for chloride:<br>
&gt; Select group for output<br>
&gt; Opening library file /usr/share/gromacs/top/aminoacids.dat<br>
&gt; Group &nbsp; &nbsp; 0 ( &nbsp; &nbsp; &nbsp;System) has 22737 elements<br>
&gt; Group &nbsp; &nbsp; 1 ( &nbsp; &nbsp; Protein) has &nbsp; 894 elements<br>
&gt; Group &nbsp; &nbsp; 2 ( &nbsp; Protein-H) has &nbsp; 707 elements<br>
&gt; &nbsp;Group &nbsp; &nbsp; 3 ( &nbsp; &nbsp; C-alpha) has &nbsp; &nbsp;89 elements<br>
&gt; Group &nbsp; &nbsp; 4 ( &nbsp; &nbsp;Backbone) has &nbsp; 267 elements<br>
&gt; Group &nbsp; &nbsp; 5 ( &nbsp; MainChain) has &nbsp; 357 elements<br>
&gt; Group &nbsp; &nbsp; 6 (MainChain+Cb) has &nbsp; 440 elements<br>
&gt; Group &nbsp; &nbsp; 7 ( MainChain+H) has &nbsp; 447 elements<br>
&gt; &nbsp;Group &nbsp; &nbsp; 8 ( &nbsp; SideChain) has &nbsp; 447 elements<br>
&gt; Group &nbsp; &nbsp; 9 ( SideChain-H) has &nbsp; 350 elements<br>
&gt; Group &nbsp; &nbsp;10 ( Prot-Masses) has &nbsp; 894 elements<br>
&gt; Group &nbsp; &nbsp;11 ( Non-Protein) has 21843 elements<br>
&gt; Group &nbsp; &nbsp;12 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Ca) has &nbsp; &nbsp; 2 elements<br>
&gt; &nbsp;Group &nbsp; &nbsp;13 ( &nbsp; &nbsp; &nbsp; &nbsp; SOL) has 21840 elements<br>
&gt; Group &nbsp; &nbsp;14 ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Cl) has &nbsp; &nbsp; 1 elements<br>
&gt; Group &nbsp; &nbsp;15 ( &nbsp; &nbsp; &nbsp; Other) has 21843 elements<br>
&gt; Select a group: 14<br>
&gt; Selected 14: &#39;Cl&#39;<br>
&gt; Reading frame &nbsp; &nbsp; &nbsp; 0 time &nbsp; &nbsp;0.000<br>
&gt; &nbsp;Precision of traj.xtc is 0.001 (nm)<br>
&gt; -------------------------------------------------------<br>
&gt; Program trjconv, VERSION 3.3.2<br>
&gt; Source code file: gmx_trjconv.c, line: 994<br>
&gt; Fatal error:<br>
&gt; Index[0] 22737 is larger than the number of atoms in the trajectory file<br>
&gt; (897)<br>
&gt; -------------------------------------------------------<br>
&gt;<br>
&gt; Does anybody know what might be wrong? Maybe the .tpr or .xtc files are not<br>
&gt; complete? Is there any way to check? Thanks!<br>
&gt;<br>
&gt; Peggy<br>
</div></div>&gt; _______________________________________________<br>
&gt; &nbsp;gmx-users mailing list &nbsp; &nbsp;<a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
&gt; &nbsp;<a href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt; &nbsp;Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
&gt; &nbsp;Please don&#39;t post (un)subscribe requests to the list. Use the<br>
&gt; &nbsp;www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
&gt; &nbsp;Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
Tsjerk A. Wassenaar, Ph.D.<br>
Junior UD (post-doc)<br>
Biomolecular NMR, Bijvoet Center<br>
Utrecht University<br>
Padualaan 8<br>
3584 CH Utrecht<br>
The Netherlands<br>
P: +31-30-2539931<br>
F: +31-30-2537623<br>
_______________________________________________<br>
gmx-users mailing list &nbsp; &nbsp;<a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<a href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br>
</blockquote></div><br>