-
Notifications
You must be signed in to change notification settings - Fork 1
/
submit.sh
executable file
·38 lines (34 loc) · 901 Bytes
/
submit.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
#!/bin/bash
usage()
{
cat << EOF
USAGE: `basename $0` [options]
-k service account key (e.g. secrets.json)
-i inputs file (e.g. sample.inputs.json)
-l labels file (e.g. labels.json)
-o options file (e.g. options.json)
EOF
}
while getopts "k:i:l:o:h" OPTION
do
case $OPTION in
k) service_account_key=$OPTARG ;;
i) inputs_file=$OPTARG ;;
l) labels_file=$OPTARG ;;
o) options_file=$OPTARG ;;
h) usage; exit 1 ;;
*) usage; exit 1 ;;
esac
done
if [ -z "$service_account_key" ] || [ -z "$inputs_file" ] || [ -z "$labels_file" ] || [ -z "$options_file" ]
then
usage
exit 1
fi
cromwell-tools submit \
--secrets-file ${service_account_key} \
--wdl CellRangerArc.wdl \
--inputs-files ${inputs_file} \
--deps-file CellRangerArc.deps.zip \
--label-file ${labels_file} \
--options-file ${options_file}