<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 put in the option to use GMX_MAXRESRENUM=-1 to get the old behavior.<br>I also fixed a bug with renumbering of multi-residue molecules.<br><br>Berk<br><br><hr id="stopSpelling">From: gmx3@hotmail.com<br>To: gmx-users@gromacs.org<br>Subject: RE: [gmx-users] RE: RE: trjconv problem<br>Date: Tue, 19 Jan 2010 16:20:05 +0100<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>


Hi,<br><br>Well, the whole point for this change was that people wanted the original residue numbers,<br>which in most cases will mean that different subunits will start counting from residue number 1.<br>The different subunits can be recognized from their chain identifier.<br><br>If you want the old numbering, you should set the env.var. GMX_MAXRESRENUM to at least<br>the largest number of residues in a single molecule.<br>I can add that the value -1 does the same thing.<br><br>Berk<br><br><hr id="ecxstopSpelling">Date: Tue, 19 Jan 2010 13:12:45 -0200<br>From: stefhoor@gmail.com<br>To: gmx-users@gromacs.org<br>Subject: [gmx-users] RE: RE: trjconv problem<br><br>Hello, thank you a lot for fixing this in trjconv, but now there is another problem, but perhaps this is simpler to solve. Since my system is formed of a protein dimer in a DPPC membrane, trjconv has renumbered my protein residues starting from one for every new chain. What I mean is: for chain A, protein starts with residue 1 and ends at residue 30, but for chain B, instead of continuing from residue 31 until residue 60 and than continue to residue 61 of DPPC etc, the numbering starts over. So Chain A is numbered from 1 to 30, then Chain B also from 1 to 30 and then DPPC starts at residue 31.....etc. The main problem is that I have a few scripts that analyse my structure files extracted from my trajectory and they rely on the sequential numbering of the residues.<br>
Is there a way to make the numbering go back to the original format?<br>Thanks<br><br><br><div class="ecxecxgmail_quote"><blockquote class="ecxecxgmail_quote" style="padding-left: 1ex;">

<br>
Hi,<br>
<br>
I fixed the bug.<br>
<br>
But note that this is about residue numbers, not molecules.<br>
The pdb format can not store molecule numbers.<br>
The pdb format is very inconvenient, but unfortunately it is the most used format.<br>
<br>
Berk<br>
<br>
Date: Mon, 18 Jan 2010 16:51:19 -0200<br>
From: <a href="mailto:stefhoor@gmail.com">stefhoor@gmail.com</a><br>
To: <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
Subject: [gmx-users] RE: trjconv problem<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Hi,<br>
<br>
<br>
<br>
It is not a pdb2gmx feature, but a global one.<br>
<br>
pdb2gmx is only affected in the sense that it retains the residue numbers from the input pdb.<br>
<br>
I assume those will be different for most lipid pdb files (if you use pdb2gmx for those).<br>
<br>
This renumbering is done by any program that needs to output or select global residue numbers.<br>
<br>
Currently this is switchable with the env.var. I mentioned.<br>
<br>
If you put this env.var. in your GMXRC, you can get things how you want them.<br>
<br>
Adding an option to all programs is not a good idea.<br>
<br>
<br>
<br>
But I am open for any suggestions on this issue.<br>
<br>
<br>
<br>
There is something I don't get though.<br>
<br>
In the problematic output the lipids can not be one single residue, but should be two or more residues.<br>
<br>
<br>
<br>
Berk<br>
<br>
<br>
<br>
&gt; Date: Mon, 18 Jan 2010 10:31:19 -0500<br>
<br>
&gt; From: <a href="mailto:jalemkul@vt.edu">jalemkul@vt.edu</a><br>
<br>
&gt; To: <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<br>
&gt; Subject: Re: [gmx-users] trjconv problem<br>
<br>
&gt;<br>
<br>
&gt;<br>
<br>
&gt; Could renumbering be a switchable feature? &nbsp;For instance, pdb2gmx -[no]renumber,<br>
<br>
&gt; with "no" being default? &nbsp;Otherwise, could you provide an example of how to<br>
<br>
&gt; properly use the environment variable you posted, since this would seem to<br>
<br>
&gt; affect all of us in the membrane protein world quite distinctly (i.e., a<br>
<br>
&gt; singly-numbered lipid, as reported, kills many of the programs we have written<br>
<br>
&gt; for lipid analysis).<br>
<br>
&gt;<br>
<br>
&gt; -Justin<br>
<br>
&gt;<br>
<br>
&gt; Berk Hess wrote:<br>
<br>
&gt; &gt; Hi,<br>
<br>
&gt; &gt;<br>
<br>
&gt; &gt; This is a feature.<br>
<br>
&gt; &gt; For a long time users have been complaining that pdb2gmx renumbers the<br>
<br>
&gt; &gt; residues in a protein.<br>
<br>
&gt; &gt; I have now changed this such that the residue numbers in the pdb are<br>
<br>
&gt; &gt; retained.<br>
<br>
&gt; &gt; But for for instance solvent you would not like to have this behavior.<br>
<br>
&gt; &gt; So I decided to keep numbering single-residue molecules.<br>
<br>
&gt; &gt; If you also want you lipids to continue numbering, you'll have to set<br>
<br>
&gt; &gt; the env.var. GMX_MAXRESRENUM<br>
<br>
&gt; &gt; to the number of residues in a lipid.<br>
<br>
&gt; &gt;<br>
<br>
&gt; &gt; Berk<br>
<br>
&gt; &gt;<br>
<br>
&gt; &gt; ------------------------------------------------------------------------<br>
<br>
&gt; &gt; Date: Mon, 18 Jan 2010 13:05:42 -0200<br>
<br>
&gt; &gt; From: <a href="mailto:stefhoor@gmail.com">stefhoor@gmail.com</a><br>
<br>
&gt; &gt; To: <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<br>
&gt; &gt; Subject: [gmx-users] trjconv problem<br>
<br>
&gt; &gt;<br>
<br>
&gt; &gt; I am trying to use trjconv to extract frames from my protein/membrane<br>
<br>
&gt; &gt; system in order to analyse with gdmat. Before using git's latest gromacs<br>
<br>
&gt; &gt; version, everything worked just fine. But now, every coordinate file<br>
<br>
&gt; &gt; trjconv gives me has the DPPC lipid molecules without numbering. It is<br>
<br>
&gt; &gt; like if my membrane was formed of a single DPPC (huge) residue. So<br>
<br>
&gt; &gt; instead of generating DPPC residue 1, 2, 3, 4 ....etc, trjconv gives me<br>
<br>
&gt; &gt; DPPC residue 1 with 5000 atoms.<br>
<br>
&gt; &gt; Some light on the matter would be great.<br>
<br>
&gt; &gt; Thanks<br>
<br>
&gt; &gt;<br>
<br>
I thank you all for the contributions, but the problem is that the command "trjconv" is making funny things and not pdb2gmx. My residues are all numbered correctly. Even my coordinate.gro file that is generated at the end of the simulation has the correct numbering. The problem is specifically with "trjconv".<br>

<br>
The output from trjconv comes out like this:<br>
"...<br>
66ASN &nbsp; &nbsp; &nbsp; O &nbsp;671 &nbsp; 3.212 &nbsp; 3.554 &nbsp; 5.248<br>
66ASN &nbsp; &nbsp; &nbsp;HO &nbsp;672 &nbsp; 3.258 &nbsp; 3.625 &nbsp; 5.302<br>
&nbsp;1DPP &nbsp; &nbsp; C33 &nbsp;673 &nbsp; 0.623 &nbsp; 5.221 &nbsp; 1.344<br>
&nbsp;1DPP &nbsp; &nbsp; C34 &nbsp;674 &nbsp; 0.461 &nbsp; 5.360 &nbsp; 1.434<br>
<br>
&nbsp;1DPP &nbsp; &nbsp; C35 &nbsp;675 &nbsp; 0.697 &nbsp; 5.438 &nbsp; 1.420<br>
&nbsp;1DPP &nbsp; &nbsp; &nbsp; N &nbsp;676 &nbsp; 0.604 &nbsp; 5.327 &nbsp; 1.444<br>
&nbsp;1DPP &nbsp; &nbsp; C32 &nbsp;677 &nbsp; 0.607 &nbsp; 5.278 &nbsp; 1.583<br>
&nbsp;1DPP &nbsp; &nbsp; C31 &nbsp;678 &nbsp; 0.722 &nbsp; 5.193 &nbsp; 1.637<br>
&nbsp;1DPP &nbsp; &nbsp; O32 &nbsp;679 &nbsp; 0.860 &nbsp; 5.229 &nbsp; 1.645<br>
<br>
&nbsp;1DPP &nbsp; &nbsp; &nbsp; P &nbsp;680 &nbsp; 0.954 &nbsp; 5.102 &nbsp; 1.677<br>
&nbsp;1DPP &nbsp; &nbsp; O33 &nbsp;681 &nbsp; 0.882 &nbsp; 4.986 &nbsp; 1.620<br>
&nbsp;1DPP &nbsp; &nbsp; O34 &nbsp;682 &nbsp; 1.094 &nbsp; 5.137 &nbsp; 1.647<br>
&nbsp;1DPP &nbsp; &nbsp; O31 &nbsp;683 &nbsp; 0.929 &nbsp; 5.088 &nbsp; 1.836<br>
&nbsp;1DPP &nbsp; &nbsp; &nbsp;C3 &nbsp;684 &nbsp; 1.003 &nbsp; 5.184 &nbsp; 1.912<br>
<br>
&nbsp;1DPP &nbsp; &nbsp; &nbsp;C2 &nbsp;685 &nbsp; 0.946 &nbsp; 5.209 &nbsp; 2.052<br>
&nbsp;1DPP &nbsp; &nbsp; O21 &nbsp;686 &nbsp; 0.988 &nbsp; 5.332 &nbsp; 2.111<br>
&nbsp;1DPP &nbsp; &nbsp; C21 &nbsp;687 &nbsp; 0.939 &nbsp; 5.454 &nbsp; 2.087<br>
&nbsp;1DPP &nbsp; &nbsp; O22 &nbsp;688 &nbsp; 0.893 &nbsp; 5.479 &nbsp; 1.976<br>
&nbsp;1DPP &nbsp; &nbsp; C22 &nbsp;689 &nbsp; 0.952 &nbsp; 5.554 &nbsp; 2.195<br>
<br>
&nbsp;1DPP &nbsp; &nbsp; C23 &nbsp;690 &nbsp; 1.086 &nbsp; 5.626 &nbsp; 2.185<br>
&nbsp;1DPP &nbsp; &nbsp; C24 &nbsp;691 &nbsp; 1.132 &nbsp;-0.046 &nbsp; 2.310<br>
&nbsp;1DPP &nbsp; &nbsp; C25 &nbsp;692 &nbsp; 1.029 &nbsp; 0.049 &nbsp; 2.372<br>
&nbsp;1DPP &nbsp; &nbsp; C26 &nbsp;693 &nbsp; 1.080 &nbsp; 0.108 &nbsp; 2.504<br>
&nbsp;1DPP &nbsp; &nbsp; C27 &nbsp;694 &nbsp; 1.100 &nbsp; 0.015 &nbsp; 2.624<br>
<br>
&nbsp;1DPP &nbsp; &nbsp; C28 &nbsp;695 &nbsp; 1.147 &nbsp; 0.089 &nbsp; 2.750<br>
&nbsp;1DPP &nbsp; &nbsp; C29 &nbsp;696 &nbsp; 1.047 &nbsp; 0.189 &nbsp; 2.809<br>
&nbsp;1DPP &nbsp; &nbsp;C210 &nbsp;697 &nbsp; 1.127 &nbsp; 0.248 &nbsp; 2.925<br>
&nbsp;1DPP &nbsp; &nbsp;C211 &nbsp;698 &nbsp; 1.046 &nbsp; 0.363 &nbsp; 2.985<br>
&nbsp;1DPP &nbsp; &nbsp;C212 &nbsp;699 &nbsp; 1.127 &nbsp; 0.411 &nbsp; 3.105<br>
<br>
&nbsp;1DPP &nbsp; &nbsp;C213 &nbsp;700 &nbsp; 1.093 &nbsp; 0.323 &nbsp; 3.226<br>
&nbsp;1DPP &nbsp; &nbsp;C214 &nbsp;701 &nbsp; 1.141 &nbsp; 0.402 &nbsp; 3.348<br>
&nbsp;1DPP &nbsp; &nbsp;C215 &nbsp;702 &nbsp; 1.107 &nbsp; 0.339 &nbsp; 3.483<br>
&nbsp;1DPP &nbsp; &nbsp;C216 &nbsp;703 &nbsp; 1.135 &nbsp; 0.428 &nbsp; 3.604<br>
&nbsp;1DPP &nbsp; &nbsp; &nbsp;C1 &nbsp;704 &nbsp; 0.997 &nbsp; 5.089 &nbsp; 2.132<br>
<br>
&nbsp;1DPP &nbsp; &nbsp; O11 &nbsp;705 &nbsp; 0.921 &nbsp; 5.069 &nbsp; 2.251<br>
&nbsp;1DPP &nbsp; &nbsp; C11 &nbsp;706 &nbsp; 0.969 &nbsp; 4.974 &nbsp; 2.332<br>
&nbsp;1DPP &nbsp; &nbsp; O12 &nbsp;707 &nbsp; 1.070 &nbsp; 4.914 &nbsp; 2.295<br>
&nbsp;1DPP &nbsp; &nbsp; C12 &nbsp;708 &nbsp; 0.886 &nbsp; 4.938 &nbsp; 2.449<br>
&nbsp;1DPP &nbsp; &nbsp; C13 &nbsp;709 &nbsp; 0.889 &nbsp; 4.790 &nbsp; 2.488<br>
<br>
&nbsp;1DPP &nbsp; &nbsp; C14 &nbsp;710 &nbsp; 0.996 &nbsp; 4.756 &nbsp; 2.592<br>
&nbsp;1DPP &nbsp; &nbsp; C15 &nbsp;711 &nbsp; 0.985 &nbsp; 4.603 &nbsp; 2.597<br>
&nbsp;1DPP &nbsp; &nbsp; C16 &nbsp;712 &nbsp; 1.098 &nbsp; 4.556 &nbsp; 2.689<br>
&nbsp;1DPP &nbsp; &nbsp; C17 &nbsp;713 &nbsp; 1.061 &nbsp; 4.414 &nbsp; 2.730<br>
&nbsp;1DPP &nbsp; &nbsp; C18 &nbsp;714 &nbsp; 1.174 &nbsp; 4.351 &nbsp; 2.813<br>
<br>
&nbsp;1DPP &nbsp; &nbsp; C19 &nbsp;715 &nbsp; 1.189 &nbsp; 4.364 &nbsp; 2.965<br>
&nbsp;1DPP &nbsp; &nbsp;C110 &nbsp;716 &nbsp; 1.330 &nbsp; 4.335 &nbsp; 3.017<br>
&nbsp;1DPP &nbsp; &nbsp;C111 &nbsp;717 &nbsp; 1.367 &nbsp; 4.338 &nbsp; 3.165<br>
&nbsp;1DPP &nbsp; &nbsp;C112 &nbsp;718 &nbsp; 1.514 &nbsp; 4.304 &nbsp; 3.191<br>
&nbsp;1DPP &nbsp; &nbsp;C113 &nbsp;719 &nbsp; 1.542 &nbsp; 4.329 &nbsp; 3.339<br>
<br>
&nbsp;1DPP &nbsp; &nbsp;C114 &nbsp;720 &nbsp; 1.691 &nbsp; 4.329 &nbsp; 3.372<br>
&nbsp;1DPP &nbsp; &nbsp;C115 &nbsp;721 &nbsp; 1.711 &nbsp; 4.346 &nbsp; 3.523<br>
&nbsp;1DPP &nbsp; &nbsp;C116 &nbsp;722 &nbsp; 1.861 &nbsp; 4.344 &nbsp; 3.549<br>
&nbsp;1DPP &nbsp; &nbsp; C33 &nbsp;723 &nbsp; 1.394 &nbsp; 3.827 &nbsp; 1.098<br>
&nbsp;1DPP &nbsp; &nbsp; C34 &nbsp;724 &nbsp; 1.402 &nbsp; 3.868 &nbsp; 1.324<br>
<br>
&nbsp;1DPP &nbsp; &nbsp; C35 &nbsp;725 &nbsp; 1.337 &nbsp; 3.651 &nbsp; 1.249<br>
&nbsp;1DPP &nbsp; &nbsp; &nbsp; N &nbsp;726 &nbsp; 1.324 &nbsp; 3.795 &nbsp; 1.223<br>
&nbsp;1DPP &nbsp; &nbsp; C32 &nbsp;727 &nbsp; 1.185 &nbsp; 3.841 &nbsp; 1.213<br>
&nbsp;1DPP &nbsp; &nbsp; C31 &nbsp;728 &nbsp; 1.074 &nbsp; 3.797 &nbsp; 1.309<br>
&nbsp;1DPP &nbsp; &nbsp; O32 &nbsp;729 &nbsp; 1.100 &nbsp; 3.828 &nbsp; 1.446<br>
<br>
&nbsp;1DPP &nbsp; &nbsp; &nbsp; P &nbsp;730 &nbsp; 1.029 &nbsp; 3.739 &nbsp; 1.561<br>
&nbsp;1DPP &nbsp; &nbsp; O33 &nbsp;731 &nbsp; 0.892 &nbsp; 3.693 &nbsp; 1.529<br>
&nbsp;1DPP &nbsp; &nbsp; O34 &nbsp;732 &nbsp; 1.132 &nbsp; 3.642 &nbsp; 1.606<br>
&nbsp;1DPP &nbsp; &nbsp; O31 &nbsp;733 &nbsp; 1.020 &nbsp; 3.846 &nbsp; 1.680<br>
&nbsp;1DPP &nbsp; &nbsp; &nbsp;C3 &nbsp;734 &nbsp; 1.118 &nbsp; 3.824 &nbsp; 1.782<br>
<br>
&nbsp;1DPP &nbsp; &nbsp; &nbsp;C2 &nbsp;735 &nbsp; 1.123 &nbsp; 3.924 &nbsp; 1.898<br>
&nbsp;1DPP &nbsp; &nbsp; O21 &nbsp;736 &nbsp; 1.254 &nbsp; 3.939 &nbsp; 1.955<br>
&nbsp;1DPP &nbsp; &nbsp; C21 &nbsp;737 &nbsp; 1.326 &nbsp; 4.049 &nbsp; 1.942...."<br>
<br>
You see that starting from the second nitrogen atom of my DPPC molecules, the residue number should be 68 and not 2. So this is what trjconv is actually giving me. It is renumbering the solvent molecules but it is not recognising different DPPC molecules. Instead it is writing my DPPC membrane as one single huge molecule.<br>

<br>
_________________________________________________________________<br>
Express yourself instantly with MSN Messenger! Download today it's FREE!<br>
<a href="http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/">http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.gromacs.org/pipermail/gmx-users/attachments/20100119/5d819194/attachment.html">http://lists.gromacs.org/pipermail/gmx-users/attachments/20100119/5d819194/attachment.html</a><br>

<br>
------------------------------<br>
<font color="#888888"><br>
--<br>
gmx-users mailing list<br>
<a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search">http://www.gromacs.org/search</a> before posting!<br>
<br>
End of gmx-users Digest, Vol 69, Issue 88<br>
*****************************************<br>
</font></blockquote></div><br>                                               <br><hr>New Windows 7: Find the right PC for you. <a href="http://windows.microsoft.com/shop">Learn more.</a>                                               <br /><hr />New Windows 7: Find the right PC for you. <a href='http://windows.microsoft.com/shop' target='_new'>Learn more.</a></body>
</html>