-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_params.sh
69 lines (60 loc) · 1.35 KB
/
create_params.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
# The entry point for the TF-Atlas pipeline
#
# This script assumes that the present working directory is the
# git cloned TF-Atlas repo folder
source ./utils.sh
# command line params
experiment=$1
tuning=$2
learning_rate=$3
# use -1 for counts_loss_weight if you want to auto set
counts_loss_weight=$4
epochs=$5
encode_access_key=$6
encode_secret_key=$7
#gbsc-gcp-lab-kundaje-tf-atlas
gcp_bucket=$8
pipeline_destination=$9
metadata_file_path=${10}
# create the log file
logfile=$PWD/$experiment.log
touch $logfile
# path to the metadata file in the Tf-Atlas folder
echo $( timestamp ): "metadata_file_path - " $metadata_file_path | \
tee -a $logfile
# change directory to the pipeline folder
# create pipeline params json
echo $( timestamp ): "
python \\
create_pipeline_params_json.py \\
$metadata_file_path \\
$experiment \\
True \\
True \\
BPNetd10008 \\
BPNet \\
one_split.json \\
chr1 \\
$tuning \\
$learning_rate \\
$counts_loss_weight \\
$epochs \\
$gcp_bucket \\
params_file.json" | tee -a $logfile
python \
create_pipeline_params_json.py \
$metadata_file_path \
$experiment \
True \
True \
BPNet1000d8 \
BPNet \
one_split.json \
chr1 \
$tuning \
$learning_rate \
$counts_loss_weight \
$epochs \
$gcp_bucket \
params_file.json