#!/bin/bash
# author:kangsgo
# name: rmsf处理脚本
# method:
# loop 后面为文件夹变量,表示进入哪个文件夹
# trj_120-150ns.xtc 轨迹变量
for loop in bnf bnf318 ch qna tcdd
do
echo "开始执行";
echo "进入第一个目录$loop";
cd /home/kangsgo/shiyan/chuli/$loop
echo "转换轨迹";
trjconv_mpi -f mdwholeNOjump.xtc -o trj_120-150ns -b 120000 -e 150000
echo "转换完成,开始转换500个单位轨迹";
trjconv_mpi -f mdwholeNOjump.xtc -o md200skip -dt 200
echo "转换完成,开始转换100个单位轨迹";
trjconv_mpi -f mdwholeNOjump.xtc -o md1000skip -dt 1000
echo "rmsf计算"
echo -e "3\n"|gmx_mpi rmsf -s md_0_1.tpr -f trj_120-150ns.xtc -o rmsf.xvg -oq rmsf.pdb -res
done
echo "全部完成"