I can easily do it by using trjconv -b and -e option if I need to extract only one snapshot. However, if have a list of suppose 5000 snapshots, not in particular order, it gets very time-consuming. Any suggestions will be highly appreciated. 

I am doing as follows:

for i in `cat index_file`; do echo -e "System"|gmx trjconv -f $TRR -s $TPR -b $i -e $i -o ${i}.trr; done

However, it takes a lot of time as every time it starts from the beginning then reaches to the specified frame in the index_file. However, I wanted something that it continues reading from the previous frame so that saves the time.

Similar questions and discussions