forked from CancerCollaboratory/dockstore-tool-bamstats
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcli-script.sh
More file actions
executable file
·20 lines (18 loc) · 1.21 KB
/
cli-script.sh
File metadata and controls
executable file
·20 lines (18 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
set -o xtrace
if [[ "${LANGUAGE}" == "cwl" ]]; then
dockstore --script workflow cwl --entry github.com/dockstore/dockstore-tool-bamstats/bamstats_cwl:develop | tee bamstats.cwl
dockstore --script workflow convert cwl2json --cwl bamstats.cwl | tee Dockstore.json
jq '.bam_input.path |= "ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase3/data/NA12878/alignment/NA12878.chrom20.ILLUMINA.bwa.CEU.low_coverage.20121211.bam"| .bamstats_report.path |= "/tmp/bamstats_report.zip"' Dockstore.json | sponge Dockstore.json
dockstore --script workflow launch --entry github.com/dockstore/dockstore-tool-bamstats/bamstats_cwl:develop --json Dockstore.json
elif [[ "${LANGUAGE}" == "wdl" ]]; then
dockstore --script workflow wdl --entry github.com/dockstore/dockstore-tool-bamstats/wdl:develop | tee bamstats.wdl
dockstore --script workflow convert wdl2json --wdl bamstats.wdl | tee Dockstore.json
dockstore --script workflow launch --entry github.com/dockstore/dockstore-tool-bamstats/wdl:develop --json test.wdl.json
elif [[ "${LANGUAGE}" == "nfl" ]]; then
echo "nextflow is not supported by the Dockstore CLI (yet?)";
./nextflow run main.nf
fi