<div>Thank you Justin, Mark and Tsjerk.</div>
<div> </div>
<div>I used the following workflow</div>
<div> </div>
<p style="MARGIN: 0cm 0cm 0pt 18pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"><span style="FONT-FAMILY: Helvetica; FONT-SIZE: 10pt; mso-ansi-language: PL" lang="PL">trjconv -s md.tpr -f md.xtc -o pbc_fix.xtc -pbc mol</span></p>

<p style="MARGIN: 0cm 0cm 0pt 18pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"><span style="FONT-FAMILY: Helvetica; COLOR: blue; FONT-SIZE: 10pt; mso-ansi-language: PL" lang="PL">trjconv -s md.tpr -f pbc_fix.xtc -n index.ndx -pbc cluster -o pbcfixcluster.xtc  (Protein+ligand group)</span><span style="COLOR: blue; mso-ansi-language: PL" lang="PL"></span></p>

<p style="MARGIN: 0cm 0cm 0pt 18pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"><span style="FONT-FAMILY: Helvetica; FONT-SIZE: 10pt">trjconv -s md.tpr -f pbcfixcluster.xtc -o center.xtc -center (center on the protein)</span></p>

<p style="MARGIN: 0cm 0cm 0pt 18pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class="MsoNormal"><span style="FONT-FAMILY: Helvetica; FONT-SIZE: 10pt"><br>trjconv -s md.tpr -f center.xtc -o Cluster1.xtc -fit rot+trans (choose protein for <br>
fitting)</span><span style="COLOR: red"></span></p>
<div><br>Trajectory looks very good from the time when ligand stacked to the protein (90% of trajectory) but at the begining of the trajectory (when it is away from protein) it still jumps. I think that is the best solution I have found. If you know how to fix begining please let me know.</div>

<div> </div>
<div>Steven</div>
<div> </div>
<div><br> </div>
<div class="gmail_quote">On Tue, Nov 8, 2011 at 8:53 AM, Steven Neumann <span dir="ltr">&lt;<a href="mailto:s.neumann08@gmail.com">s.neumann08@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br><br>
<div class="gmail_quote">
<div class="im">On Mon, Nov 7, 2011 at 9:47 PM, Justin A. Lemkul <span dir="ltr">&lt;<a href="mailto:jalemkul@vt.edu" target="_blank">jalemkul@vt.edu</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div><br><br>Steven Neumann wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Tsjerk,<br><br>Thank you. Unfortunately my ligand is not with protein. I put my ligand around my protein (in water) running separate simulations to see where can it bind. It is close to protein but not within. Any other suggestion?<br>
I used also pbc -res so I observe my ligand close to protein but sometimes still changing its position rapidly... No clue for now how to solve it...<br><br></blockquote><br></div>I have no idea why the proposed protocol isn&#39;t working, but I know that one should be able to do something very simple, along the lines of the following, for this to work:<br>
<br>1. trjconv -s md.tpr -f md.xtc -o pbc_fix.xtc -pbc mol<br>2. trjconv -s md.tpr -f pbc_fix.xtc -o center.xtc -center (center on the protein)<br>3. trjconv -s md.tpr -f center.xtc -o fit.xtc -fit rot+trans (choose protein for fitting)<br>
<br>-Justin<br><br></blockquote>
<div> </div></div>
<div>Thank you Justin. From this workflow my ligand is binding the protein most of the frames but sometimes it rapidly jumps to different part of the box and come back again. Then remains with protein and situation is repeated: in one frame it changes its position and come back to protein remaining. :((((((((( no clue...</div>

<div>
<div></div>
<div class="h5">
<div> </div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Steven 
<div><br><br>On Monday, November 7, 2011, Tsjerk Wassenaar &lt;<a href="mailto:tsjerkw@gmail.com" target="_blank">tsjerkw@gmail.com</a> &lt;mailto:<a href="mailto:tsjerkw@gmail.com" target="_blank">tsjerkw@gmail.com</a>&gt;&gt; wrote:<br>
 &gt; Hi Steven,<br> &gt;<br> &gt; Step 2: Cluster your molecules.<br> &gt; This is where you have to forge a reference frame that you can use to<br> &gt; remove jumps from your trajectory. If the ligand is not with the<br>
 &gt; protein at the start, you&#39;ll have to shift it so that it is. Maybe<br> &gt; -pbc cluster is your friend there. I do assume that the ligand is<br> &gt; really with the protein and not in the solvent...<br> &gt;<br>
 &gt; Cheers,<br> &gt;<br> &gt; Tsjerk<br> &gt;<br></div> &gt; On Mon, Nov 7, 2011 at 5:17 PM, Steven Neumann &lt;<a href="mailto:s.neumann08@gmail.com" target="_blank">s.neumann08@gmail.com</a> &lt;mailto:<a href="mailto:s.neumann08@gmail.com" target="_blank">s.neumann08@gmail.com</a>&gt;<u></u>&gt; wrote: 
<div>
<div></div>
<div><br> &gt;&gt;<br> &gt;&gt;<br> &gt;&gt; On Mon, Nov 7, 2011 at 2:26 PM, Justin A. Lemkul &lt;<a href="mailto:jalemkul@vt.edu" target="_blank">jalemkul@vt.edu</a> &lt;mailto:<a href="mailto:jalemkul@vt.edu" target="_blank">jalemkul@vt.edu</a>&gt;&gt; wrote:<br>
 &gt;&gt;&gt;<br> &gt;&gt;&gt;<br> &gt;&gt;&gt; Steven Neumann wrote:<br> &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; Dear Gmx Users,<br> &gt;&gt;&gt;&gt;  I know that this problem has been discussed may times but I cannot find<br>
 &gt;&gt;&gt;&gt; the solution to get rid of pbc in my system: protein and ligand. I followed<br> &gt;&gt;&gt;&gt; the workflow:<br> &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; 1.      First make your molecules whole if you want them whole<br>
 &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; trjconv -f md.trr -s md.tpr -pbc whole -ur compact -o mdwhole.xtc<br> &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; 2.      Cluster your molecules/particles if you want them clustered<br> &gt;&gt;&gt;&gt;<br>
 &gt;&gt;&gt;&gt; 3.      Extract the first frame from the trajectory as reference for<br> &gt;&gt;&gt;&gt; removing jumps if you want to remove jumps.<br> &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; trjconv -f mdwhole.xtc -s md.tpr -dump 0 -o 1stframe.pdb<br>
 &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; 4.      Remove jumps if you want to have them removed using the first<br> &gt;&gt;&gt;&gt; frame<br> &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; trjconv -f mdwhole.xtc -s 1stframe.pdb -pbc nojump -o mdwholeNOjump.xtc<br>
 &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; 5.      Center your system using some criterion. Doing so shifts the<br> &gt;&gt;&gt;&gt; system, so don&#39;t use |trjconv -|pbc| nojump| after this step.<br> &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; trjconv -f mdwholeNOjump.xtc -center -o mdwholeNOjumpCENTER.xtc<br>
 &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; 6.      Put everything in some box.<br> &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; trjconv -f mdwholeNOjumpCENTER.xtc -box 6 6 6 -o<br> &gt;&gt;&gt;&gt; mdwholeNOjumpCENTERbox.xtc<br> &gt;&gt;&gt;&gt;<br>
 &gt;&gt;&gt;&gt; 7.      Fit if desired and don&#39;t use any PBC related option afterwards.<br> &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; trjconv -f mdwholeNOjumpCENTERbox.xtc -s 1stframe.pdb -fit rot+trans -o<br> &gt;&gt;&gt;&gt; mdfinal.xtc<br>
 &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; I used SYSTEM everywhere as output orinput. However, my ligand is still<br> &gt;&gt;&gt;&gt; jumping like a fly around the stable protein. Do you have any suggestions?<br>
 &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;&gt;<br> &gt;&gt;&gt;<br> &gt;&gt;&gt; Center on either the protein, the ligand, or some custom index group of<br> &gt;&gt;&gt; residues surrounding the ligand.  Centering on the whole system usually<br>
 &gt;&gt;&gt; doesn&#39;t do anything useful.<br> &gt;&gt;&gt;<br> &gt;&gt;&gt; -Justin<br> &gt;&gt;&gt;<br> &gt;&gt;<br> &gt;&gt; Thank you guys but...<br> &gt;&gt;<br> &gt;&gt; I am trying and it does not work... my ligand is jumping like an idiot<br>
 &gt;&gt; outside the box changing its position even two dimensions of box in one<br> &gt;&gt; frame. I removed -ur compact from the first line and I tried centering on<br> &gt;&gt; ligand or protein (centering group: LIG or Protein, output: SYSTEM). No<br>
 &gt;&gt; results...<br> &gt;&gt; My ligand at the begining of the simualtion is not within the protein.<br> &gt;&gt; Please, help :(((( I tried this workflow with many ligands and same protein<br> &gt;&gt; - it worked! Now it does not...<br>
 &gt;&gt; Here is my workflow:<br> &gt;&gt;<br> &gt;&gt;<br> &gt;&gt; 1.      First make your molecules whole if you want them whole.<br> &gt;&gt;<br> &gt;&gt; trjconv -f md.trr -s md.tpr -pbc whole -o mdwhole.xtc<br> &gt;&gt;<br>
 &gt;&gt; 2.      Cluster your molecules/particles if you want them clustered<br> &gt;&gt;<br> &gt;&gt; 3.      Extract the first frame from the trajectory as reference for<br> &gt;&gt; removing jumps if you want to remove jumps.<br>
 &gt;&gt;<br> &gt;&gt; trjconv -f mdwhole.xtc -s md.tpr -dump 0 -o 1stframe.pdb<br> &gt;&gt;<br> &gt;&gt; 4.      Remove jumps if you want to have them removed using the first frame<br> &gt;&gt; (system)<br> &gt;&gt;<br> &gt;&gt; trjconv -f mdwhole.xtc -s 1stframe.pdb -pbc nojump -o mdwholeNOjump.xtc<br>
 &gt;&gt;<br> &gt;&gt; 5.      Center your system using some criterion. Doing so shifts the system,<br> &gt;&gt; so don&#39;t use trjconv -pbc nojump after this step (tried centering on LIG or<br> &gt;&gt; PROTEIN)<br> &gt;&gt;<br>
 &gt;&gt; trjconv -f mdwholeNOjump.xtc -n Ligand.ndx -center -o<br> &gt;&gt; mdwholeNOjumpCENTER.xtc<br> &gt;&gt;<br> &gt;&gt; 6.      Put everything in some box.<br> &gt;&gt;<br> &gt;&gt; trjconv -f mdwholeNOjumpCENTER.xtc -box 6 6 6 -o mdwholeNOjumpCENTERbox.xtc<br>
 &gt;&gt;<br> &gt;&gt; 7.      Fit if desired and don&#39;t use any PBC related option afterwards.<br> &gt;&gt;<br> &gt;&gt; trjconv -f mdwholeNOjumpCENTERbox.xtc -s 1stframe.pdb -fit rot+trans -o<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></div></div> &gt; gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a> &lt;mailto:<a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a>&gt; 
<div><br> &gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/<u></u>mailman/listinfo/gmx-users</a><br> &gt; Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/<u></u>Support/Mailing_Lists/Search</a> before posting!<br>
 &gt; Please don&#39;t post (un)subscribe requests to the list. Use the<br></div> &gt; www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank">gmx-users-request@gromacs.org</a> &lt;mailto:<a href="mailto:gmx-users-request@gromacs.org" target="_blank">gmx-users-request@<u></u>gromacs.org</a>&gt;. 
<div><br> &gt; Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/<u></u>Support/Mailing_Lists</a><br> &gt;<br><br></div></blockquote><br>-- <br>
<div>==============================<u></u>==========<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]<a href="http://vt.edu/" target="_blank">vt.edu</a> | <a href="tel:%28540%29%20231-9080" target="_blank" value="+15402319080">(540) 231-9080</a><br>
<a href="http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin" target="_blank">http://www.bevanlab.biochem.<u></u>vt.edu/Pages/Personal/justin</a><br><br>==============================<u></u>==========<br></div>
<div>
<div></div>
<div>-- <br>gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br><a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/<u></u>mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/<u></u>Support/Mailing_Lists/Search</a> before posting!<br>Please don&#39;t post (un)subscribe requests to the list. Use the www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank">gmx-users-request@gromacs.org</a>.<br>
Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/<u></u>Support/Mailing_Lists</a><br></div></div></blockquote></div></div></div><br></blockquote></div><br>