-
Notifications
You must be signed in to change notification settings - Fork 80
/
run_train_DeepFRI.sh
executable file
·46 lines (41 loc) · 1.4 KB
/
run_train_DeepFRI.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
40
41
42
43
44
45
46
# !/bin/bash
# Script for training DeepFRI model
# cuda libraries to run tf2 on gpu
# module load slurm gcc cuda/10.1.105_418.39 cudnn/v7.6.2-cuda-10.1
graph_conv_dims="512 512 512"
fully_connected_dims="1024"
graph_conv_layer=GraphConv
ontology=ec
cmap_thresh=10.0
data_dir=/mnt/ceph/users/vgligorijevic/ContactMaps/TFRecords/
cmap_data=PDB # possible: PDB, SWISS-MODEL or MERGED
model_name=./results/DeepFRI-${cmap_data}_${graph_conv_layer}_gcd_$(echo $graph_conv_dims | tr ' ' '-')_fcd_${fully_connected_dims}_ca_${cmap_thresh}_${ontology}
if [ "$ontology" == ec ]; then
annot=EC
annot_fn=./preprocessing/data/nrPDB-EC_2020.04_annot.tsv
test_list=./preprocessing/data/nrPDB-EC_2020.04_test.csv
else
annot=GO
annot_fn=./preprocessing/data/nrPDB-GO_2019.06.18_annot.tsv
test_list=./preprocessing/data/nrPDB-GO_2019.06.18_test.csv
fi
if [ "$cmap_data" == MERGED ]; then
cmap_data=*
fi
echo $annot
python train_DeepFRI.py \
-gcd ${graph_conv_dims} \
-fcd ${fully_connected_dims} \
-l2 2e-5 \
-lr 0.0002 \
-gc ${graph_conv_layer} \
-e 50 \
-ont ${ontology} \
-lm trained_models/lstm_lm.hdf5 \
--cmap_type ca \
--cmap_thresh ${cmap_thresh} \
--train_tfrecord_fn ${data_dir}${cmap_data}_${annot}_train \
--valid_tfrecord_fn ${data_dir}${cmap_data}_${annot}_valid \
--annot_fn ${annot_fn} \
--test_list ${test_list} \
--model_name ${model_name} \