保存为sh格式后缀,放入处理文件目录,会生成fopcket2文件夹,内包含所有内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| #!/bin/bash echo -e "1\n1\n"|trjconv_mpi -f mdwholeNOjump.xtc -s md_0_1.tpr -fit rot+trans -o align.xtc mkdir fpocket2 cp align.xtc fpocket2/align.xtc cp md_0_1.tpr fpocket2/md_0_1.tpr cd fpocket2 touch mdpocket_input.txt numtray=150000 dttray=1000 numdttray=$[$numtray/$dttray] echo "轨迹间隔$numdttray" count=0 num=0 while [ $num -le $numtray ] do echo "数值为$num" echo "count数值为$count" count=$[ $count +1] num=$[$dttray*$count] ns=$[$num/1000] echo -e "1\n"|trjconv_mpi -f align.xtc -s md_0_1.tpr -dump $num -o snap_$ns.pdb echo "snap_$ns.pdb\n">>mdpocket_input.txt done echo "全部完成"
|
下载地址:fpocketpre-sh