#!/bin/bash

ptraj_file="tmp.ptraj"
OUT="50ns_5000frames_RMSD"

PRMTOP="1XCK_heptamer_noWAT.prmtop"

TRAJIN_PREFIX="50ns_noWAT_5000frames_hept"

DIR="../traj_heptamer/"



rm ${ptraj_file}

for index in 1 2;
do
	
        echo 'trajin '${DIR}${TRAJIN_PREFIX}_${index}.nc 1 5000 5 >> ${ptraj_file}
	#echo 'reference' ${REF} >> $ptraj_file
        #echo "strip @H*" >> ${ptraj_file}
        #echo 'rms reference mass @N,CA,C out '${OUT}_${index}.dat >> $ptraj_file
        echo 'rms first mass @N,CA,C out '${OUT}_${index}.dat >> $ptraj_file

        ptraj ${PRMTOP} ${ptraj_file}

        rm ${ptraj_file}
done

