-
Notifications
You must be signed in to change notification settings - Fork 1
/
adopt_chezod_training.sh
executable file
·35 lines (24 loc) · 1.22 KB
/
adopt_chezod_training.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
#!/bin/bash
# Copyright (c) 2021 Peptone.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
TRAIN_FASTA_FILE_PATH="datasets/chezod_1325_all.fasta"
TEST_FASTA_FILE_PATH="datasets/chezod_117_all.fasta"
TRAIN_RES_REPR_DIR_PATH="representations/chezod_1325"
TEST_RES_REPR_DIR_PATH="representations/chezod_117"
TRAIN_STRATEGY="<training_strategy>" # choose a training strategy
TRAIN_JSON_FILE_PATH="datasets/1325_dataset_raw.json"
TEST_JSON_FILE_PATH="datasets/117_dataset_raw.json"
printf "Extracting residue level representation of %s \n" $TRAIN_FASTA_FILE_PATH
python adopt/embedding.py $TRAIN_FASTA_FILE_PATH \
$TRAIN_RES_REPR_DIR_PATH
printf "Extracting residue level representation of %s \n" $TEST_FASTA_FILE_PATH
python adopt/embedding.py $TEST_FASTA_FILE_PATH \
$TEST_RES_REPR_DIR_PATH
printf "Training ADOPT on %s \n" $TRAIN_FASTA_FILE_PATH
python adopt/training.py $TRAIN_JSON_FILE_PATH \
$TEST_JSON_FILE_PATH \
$TRAIN_RES_REPR_DIR_PATH \
$TEST_RES_REPR_DIR_PATH \
--train_strategy $TRAIN_STRATEGY \