<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>Catting trajectories without overlap can also simply be done with the cat command.<br><br>But you probably want to use trjconv -drop -dropunder (or -dropover)<br><br>Berk<br><br>&gt; Date: Tue, 9 Mar 2010 14:49:18 +0100<br>&gt; From: cseifert@bph.ruhr-uni-bochum.de<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: [gmx-users] Using trjcat to subdivide a trajectory into two trajectories (depending on a criterion)<br>&gt; <br>&gt; Hi!<br>&gt; <br>&gt; I have a protein, which jumps between two states during a long<br>&gt; simulation. The two states are: open and close.<br>&gt; <br>&gt; I used g_mindist to find out in which state the protein is at any given<br>&gt; time. My results are two lists of times.<br>&gt; e.g. (timeframe: 20ps):<br>&gt; open: 0ps 20ps 40ps 100ps 120ps<br>&gt; close: 60ps 80ps 140ps 160ps<br>&gt; <br>&gt; Now, I want to subdivide my trajectory into two trajectories:<br>&gt; Protein.xtc &lt;- This is the long trajectory<br>&gt; Protein_open.xtc &lt;- This should be a trajectory of ONLY the open<br>&gt; struktures<br>&gt; Protein_close.xtc &lt;- This should be a trajectory of ONLY the close<br>&gt; struktures<br>&gt; <br>&gt; This is what I tried:<br>&gt; &gt; # Generate the Protein_open with the first frames:<br>&gt; &gt; trjcat -f Protein.xtc -o Protein_open.xtc -b 0 -e 40<br>&gt; &gt; # Elongate Protein_open:<br>&gt; &gt; trjcat -f Protein_open.xtc Protein.xtc -o Protein_open.xtc -b 100 -e<br>&gt; 120<br>&gt; <br>&gt; This seems to work (at least a bit), but I lose some frames (lose means:<br>&gt; the number of frames in Protein_open.xtc does not equal the number of<br>&gt; times in my open state list). And gmxcheck tells me, that some timesteps<br>&gt; do not match (e.g.: Reading frame     190 time 19240.000   <br>&gt; Timesteps at t=19260 don't match (20, 60)).<br>&gt; <br>&gt; It gets even worse, when I try to do the same with the close state,<br>&gt; because then Protein_close.xtc does not start with time 0ps, but with<br>&gt; time 60ps.<br>&gt; <br>&gt; Another problem appears, when I want to start with a trajectory, which<br>&gt; consists only of a single timestep. The produced trajectory seems to be<br>&gt; invalid. I guess, that a .xtc file consits of (at least) two structures.<br>&gt; <br>&gt; Does someone has any suggestions?<br>&gt; I tried several combinations of -settime, -demux and -cat but could not<br>&gt; solve this.<br>&gt; <br>&gt; Greets,<br>&gt; Christian<br>&gt; <br>&gt; -- <br>&gt; M. Sc. Christian Seifert<br>&gt; Molecular Biomechanics Group<br>&gt; HITS gGmbH<br>&gt; Schloß-Wolfsbrunnenweg 35<br>&gt; 69118 Heidelberg<br>&gt; Germany<br>&gt; <br>&gt; phone: +49-6221-533254<br>&gt; fax: +49 6221 533298<br>&gt; email: christian.seifert@h-its.org<br>&gt; http://www.h-its.org <br>&gt; http://www.eml-research.de<br>&gt; _________________________________________________<br>&gt; <br>&gt; Amtsgericht Mannheim / HRB 337446<br>&gt; Managing Directors: <br>&gt; Dr. h.c. Klaus Tschira<br>&gt; Prof. Dr.-Ing. Andreas Reuter<br>&gt; <br>&gt; -- <br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; Please don't post (un)subscribe requests to the list. Use the <br>&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>                                               <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>