forked from soedinglab/hhdatabase_cif70
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdb70_addss.sh
executable file
·40 lines (29 loc) · 1.24 KB
/
pdb70_addss.sh
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
#!/bin/bash
#BSUB -q mpi
#BSUB -W 47:50
#BSUB -n 16
#BSUB -a openmp
#BSUB -o /usr/users/jsoedin/jobs/cif70_addss.log
#BSUB -R "span[hosts=1]"
#BSUB -R np16
#BSUB -R haswell
#BSUB -R cbscratch
#BSUB -J cif70_addss
#BSUB -m hh
#BSUB -w "done(cif70_hhblits)"
source /etc/profile
source $HOME/.bashrc
source paths.sh
mkdir -p /local/${USER}
MYLOCAL=$(mktemp -d --tmpdir=/local/${USER})
src_input=${pdb70_build_dir}/pdb70_a3m_without_ss
input_basename=$(basename ${src_input})
cp ${src_input}.ff* ${MYLOCAL}
input=${MYLOCAL}/${input_basename}
echo "pdb70_addss: Copied data from ${pdb70_build_dir}/pdb70_a3m_without_ss to ${MYLOCAL}/${input_basename}."
echo "pdb70_addss: Running: mpirun -np 16 ffindex_apply_mpi ${input}.ff{data,index} -d ${MYLOCAL}/pdb70_a3m.ffdata -i ${MYLOCAL}/pdb70_a3m.ffindex -- ${HHLIB}/scripts/addss.pl stdin stdout -v 0"
mpirun -np 16 ffindex_apply_mpi ${input}.ff{data,index} -d ${MYLOCAL}/pdb70_a3m.ffdata -i ${MYLOCAL}/pdb70_a3m.ffindex -- ${HHLIB}/scripts/addss.pl stdin stdout -v 0
ffindex_build -as ${MYLOCAL}/pdb70_a3m.ff{data,index}
rm -f ${pdb70_build_dir}/pdb70_a3m.ff{data,index}
cp ${MYLOCAL}/pdb70_a3m.ff{data,index} ${pdb70_build_dir}/
echo "Copied data from ${MYLOCAL}/pdb70_a3m.ff{data,index} to ${pdb70_build_dir}."