[gmx-users] Chop the files

marcos arloa at mail.fcq.unc.edu.ar
Wed Aug 10 20:05:21 CEST 2005


On Wednesday 10 August 2005 20:20, Gia Maisuradze wrote:
> Hi,
>
> I have finished MD simulations of protein for 10ns and got .trr, .xtc, .tpr
> files for 10ns. Is it possible to "chop" these files to ten separate files
> from 0 to1ns, 1ns to 2ns, 2ns to 3ns, ..., 9ns to 10ns?
>
> Thanks,

try with a shell script. for example:

#!/bin/bash
for i in 0 1 2 3 4 5 6 7 8 9
do

let b=$i*1000
let e=$b+1000

trjconv  -f traj.xtc   -b $b -e $e -o $b-$e.xtc

done



More information about the gromacs.org_gmx-users mailing list