<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:14pt"><div><span>Hi Tsjerk, <br></span></div><div><span><br></span></div><div><span>I have a good news!!! That was corrected!!!</span><br></div><div><br></div><div>Thank you very much from your help.</div><div><br></div><div>Best Regards</div><div>Sara<br></div>  <div style="font-family: bookman old style, new york, times, serif; font-size: 14pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Tsjerk Wassenaar &lt;tsjerkw@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> mohammad agha &lt;mra_bu@yahoo.com&gt;; Discussion list for GROMACS users &lt;gmx-users@gromacs.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, January 11, 2012 2:12 PM<br> <b><span
 style="font-weight: bold;">Subject:</span></b> Re: Fw: [gmx-users] trjconv in martini<br> </font> <br>
Hi Sara,<br><br>You have to understand what is happening. You don't have a static<br>system. Using -pbc nojump, in combination with <a target="_blank" href="http://xtcrev.py">xtcrev.py</a> may help you<br>get a view in which the molecules seem to settle on a specific view or<br>clustering of your systems, in which you have the micelles. But they<br>will be dispersed before, and maybe after. If you use -pbc cluster,<br>the same thing will happen. trjconv will try to form clusters for<br>every frame, but in some frames there are no clear cut clusters.<br>Usually you can't have it all, and usually you will have to try<br>several things. First of all, you have to think of the goal. Is it for<br>visualization, or is it for further analysis. The needs for these two<br>are usually different.<br><br>Cheers,<br><br>Tsjerk<br><br>On Wed, Jan 11, 2012 at 11:32 AM, mohammad agha &lt;<a ymailto="mailto:mra_bu@yahoo.com"
 href="mailto:mra_bu@yahoo.com">mra_bu@yahoo.com</a>&gt; wrote:<br>&gt; Hi Tsjerk,<br>&gt;<br>&gt; Thank you very very much from your help about xtcrev.py script, I did it<br>&gt; till end according to you said me before, but unfortunately my first problem<br>&gt; about view of 2 micelles was not solved and monomers are dispersed during<br>&gt; simulation!!! I don't know why!!!<br>&gt; You helped me very much and thank you very much but may I ask you any<br>&gt; suggestion about my problem, please?<br>&gt;<br>&gt; Best Regards<br>&gt; Sara<br>&gt;<br>&gt;<br>&gt; ________________________________<br>&gt; rom: Tsjerk Wassenaar &lt;<a ymailto="mailto:tsjerkw@gmail.com" href="mailto:tsjerkw@gmail.com">tsjerkw@gmail.com</a>&gt;<br>&gt; To: mohammad agha &lt;<a ymailto="mailto:mra_bu@yahoo.com" href="mailto:mra_bu@yahoo.com">mra_bu@yahoo.com</a>&gt;; Discussion list for GROMACS users<br>&gt; &lt;<a ymailto="mailto:gmx-users@gromacs.org"
 href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a>&gt;<br>&gt; Sent: Wednesday, January 11, 2012 1:38 PM<br>&gt;<br>&gt; Subject: Re: Fw: [gmx-users] trjconv in martini<br>&gt;<br>&gt; Hi Sara,<br>&gt;<br>&gt; If you give two arguments, it shouldn't do that. './xtcrev.py<br>&gt; input.xtc output.xtc' should work fine. Of course I could've clogged<br>&gt; the script with checking the number of input files and such, and maybe<br>&gt; I will later, but for now it's just a nifty hack :p<br>&gt;<br>&gt; Cheers,<br>&gt;<br>&gt; Tsjerk<br>&gt;<br>&gt; On Wed, Jan 11, 2012 at 11:05 AM, mohammad agha &lt;<a ymailto="mailto:mra_bu@yahoo.com" href="mailto:mra_bu@yahoo.com">mra_bu@yahoo.com</a>&gt; wrote:<br>&gt;&gt; Hi Tsjerk,<br>&gt;&gt;<br>&gt;&gt; Thank you very much from your reply. Yes, you're right, I corrected that,<br>&gt;&gt; but now it gave me this error:<br>&gt;&gt;<br>&gt;&gt; Traceback (most recent call last):<br>&gt;&gt; &nbsp; File
 "./xtcrev.py", line 68, in &lt;module&gt;<br>&gt;&gt; &nbsp;&nbsp;&nbsp; o = open(sys.argv[2],"w")<br>&gt;&gt; IndexError: list index out of range<br>&gt;&gt;<br>&gt;&gt; May I ask you to help me, please?<br>&gt;&gt;<br>&gt;&gt; Best Regards<br>&gt;&gt; Sara<br>&gt;&gt; ________________________________<br>&gt;&gt; From: Tsjerk Wassenaar &lt;<a ymailto="mailto:tsjerkw@gmail.com" href="mailto:tsjerkw@gmail.com">tsjerkw@gmail.com</a>&gt;<br>&gt;&gt; To: mohammad agha &lt;<a ymailto="mailto:mra_bu@yahoo.com" href="mailto:mra_bu@yahoo.com">mra_bu@yahoo.com</a>&gt;; Discussion list for GROMACS users<br>&gt;&gt; &lt;<a ymailto="mailto:gmx-users@gromacs.org" href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a>&gt;<br>&gt;&gt; Sent: Wednesday, January 11, 2012 12:54 PM<br>&gt;&gt;<br>&gt;&gt; Subject: Re: Fw: [gmx-users] trjconv in martini<br>&gt;&gt;<br>&gt;&gt; Hi Sara,<br>&gt;&gt;<br>&gt;&gt; That can only happen if the input file is
 empty.<br>&gt;&gt; But I now see that the output file should be given as second argument,<br>&gt;&gt; so it should be<br>&gt;&gt;<br>&gt;&gt; ./xtcrev.py input.xtc output.xtc<br>&gt;&gt;<br>&gt;&gt; rather than<br>&gt;&gt;<br>&gt;&gt; ./xtcrev.py input.xtc &gt; output.xtc<br>&gt;&gt;<br>&gt;&gt; The latter will actually result in an empty xtc file. Maybe that's the<br>&gt;&gt; cause of the problem? Sorry about that.<br>&gt;&gt;<br>&gt;&gt; Cheers,<br>&gt;&gt;<br>&gt;&gt; Tsjerk<br>&gt;&gt;<br>&gt;&gt; On Tue, Jan 10, 2012 at 6:38 PM, mohammad agha &lt;<a ymailto="mailto:mra_bu@yahoo.com" href="mailto:mra_bu@yahoo.com">mra_bu@yahoo.com</a>&gt; wrote:<br>&gt;&gt;&gt; Hi Tsjerk,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I know that my question is silly but please help me.<br>&gt;&gt;&gt; I installed python2.5 on my system, then I ran "./xtcrev.py 1a.xtc &gt;<br>&gt;&gt;&gt; 1a-rev.xtc" but it gave me following error:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Traceback (most
 recent call last):<br>&gt;&gt;&gt; &nbsp; File "./xtcrev.py", line 54, in &lt;module&gt;<br>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; n&nbsp;&nbsp; = 92 + i(f.read(84)[-4:])&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Size of frame in bytes<br>&gt;&gt;&gt; &nbsp; File "./xtcrev.py", line 24, in i<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; def i(x): return sum([ord(x[j])&lt;&lt;(24-j*8) for j in range(4)])<br>&gt;&gt;&gt; IndexError: string index out of range<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I know that j is out of range but I don't know that what should I do<br>&gt;&gt;&gt; exactly?<br>&gt;&gt;&gt; May I ask you to help me, Please?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Best Regards<br>&gt;&gt;&gt; Sara<br>&gt;&gt;&gt; ________________________________<br>&gt;&gt;&gt; From: Tsjerk Wassenaar &lt;<a ymailto="mailto:tsjerkw@gmail.com" href="mailto:tsjerkw@gmail.com">tsjerkw@gmail.com</a>&gt;<br>&gt;&gt;&gt; To: mohammad agha &lt;<a ymailto="mailto:mra_bu@yahoo.com"
 href="mailto:mra_bu@yahoo.com">mra_bu@yahoo.com</a>&gt;; Discussion list for GROMACS users<br>&gt;&gt;&gt; &lt;<a ymailto="mailto:gmx-users@gromacs.org" href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a>&gt;<br>&gt;&gt;&gt; Sent: Saturday, December 31, 2011 3:41 PM<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Subject: Re: Fw: [gmx-users] trjconv in martini<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Hi Sara,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; # Extract the first part of the trajectory<br>&gt;&gt;&gt;&gt; trjconv -s md.tpr -f md.trr -n index.ndx -o 1a.xtc -e 19999<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; That should be -e 199999 :) But you can also use -e 200000. Probably<br>&gt;&gt;&gt; that is better. I first thought it'd be better to avoid a double<br>&gt;&gt;&gt; frame, but since trjcat is used to combine the parts again, it doesn't<br>&gt;&gt;&gt; matter.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Good luck,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;
 Tsjerk<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; --<br>&gt;&gt;&gt; Tsjerk A. Wassenaar, Ph.D.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; post-doctoral researcher<br>&gt;&gt;&gt; Molecular Dynamics Group<br>&gt;&gt;&gt; * Groningen Institute for Biomolecular Research and Biotechnology<br>&gt;&gt;&gt; * Zernike Institute for Advanced Materials<br>&gt;&gt;&gt; University of Groningen<br>&gt;&gt;&gt; The Netherlands<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; --<br>&gt;&gt;&gt; gmx-users mailing list &nbsp; &nbsp;<a ymailto="mailto:gmx-users@gromacs.org" href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>&gt;&gt;&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>&gt;&gt;&gt; Please search the archive at<br>&gt;&gt;&gt; <a href="http://www.gromacs.org/Support/Mailing_Lists/Search"
 target="_blank">http://www.gromacs.org/Support/Mailing_Lists/Search</a> before posting!<br>&gt;&gt;&gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt;&gt;&gt; www interface or send it to <a ymailto="mailto:gmx-users-request@gromacs.org" href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>&gt;&gt;&gt; Can't post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; --<br>&gt;&gt; Tsjerk A. Wassenaar, Ph.D.<br>&gt;&gt;<br>&gt;&gt; post-doctoral researcher<br>&gt;&gt; Molecular Dynamics Group<br>&gt;&gt; * Groningen Institute for Biomolecular Research and Biotechnology<br>&gt;&gt; * Zernike Institute for Advanced Materials<br>&gt;&gt; University of Groningen<br>&gt;&gt; The Netherlands<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; --<br>&gt;&gt; gmx-users mailing list &nbsp; &nbsp;<a
 ymailto="mailto:gmx-users@gromacs.org" href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>&gt;&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>&gt;&gt; Please search the archive at<br>&gt;&gt; <a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/Search</a> before posting!<br>&gt;&gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt;&gt; www interface or send it to <a ymailto="mailto:gmx-users-request@gromacs.org" href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>&gt;&gt; Can't post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Tsjerk A. Wassenaar, Ph.D.<br>&gt;<br>&gt; post-doctoral researcher<br>&gt;
 Molecular Dynamics Group<br>&gt; * Groningen Institute for Biomolecular Research and Biotechnology<br>&gt; * Zernike Institute for Advanced Materials<br>&gt; University of Groningen<br>&gt; The Netherlands<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; gmx-users mailing list &nbsp; &nbsp;<a ymailto="mailto:gmx-users@gromacs.org" href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>&gt; Please search the archive at<br>&gt; <a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/Search</a> before posting!<br>&gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; www interface or send it to <a ymailto="mailto:gmx-users-request@gromacs.org"
 href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>&gt; Can't post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br><br><br><br>-- <br>Tsjerk A. Wassenaar, Ph.D.<br><br>post-doctoral researcher<br>Molecular Dynamics Group<br>* Groningen Institute for Biomolecular Research and Biotechnology<br>* Zernike Institute for Advanced Materials<br>University of Groningen<br>The Netherlands<br><br><br> </div> </div>  </div></body></html>