This repository was archived by the owner on Aug 17, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +47
-1
lines changed Expand file tree Collapse file tree 6 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ services:
6
6
env :
7
7
- LANGUAGE=cwl
8
8
- LANGUAGE=wdl
9
+ - LANGUAGE=nfl
9
10
10
11
notifications :
11
12
slack :
Original file line number Diff line number Diff line change @@ -102,4 +102,13 @@ $> dockstore tool wdl --entry quay.io/collaboratory/dockstore-tool-bamstats > Do
102
102
$> dockstore tool convert wdl2json --wdl Dockstore.wdl > Dockstore.json
103
103
# run it locally with the Dockstore CLI
104
104
$> dockstore tool launch --entry quay.io/collaboratory/dockstore-tool-bamstats --json Dockstore.json
105
- ```
105
+ ```
106
+
107
+ ## Running Nextflow Workflow
108
+
109
+ Install [ Nextflow] ( https://www.nextflow.io/ ) . Nextflow workflows cannot be run with the Dockstore CLI yet.
110
+
111
+ The workflow can be run using the following command:
112
+ ```
113
+ $> nextflow run main.nf
114
+ ```
Original file line number Diff line number Diff line change @@ -9,4 +9,7 @@ if [[ "${LANGUAGE}" == "cwl" ]]; then
9
9
pip2.7 install --user cwl-runner cwltool==1.0.20160712154127 schema-salad==1.14.20160708181155 avro==1.8.1
10
10
elif [[ " ${LANGUAGE} " == " wdl" ]]; then
11
11
wget https://github.com/broadinstitute/cromwell/releases/download/32/cromwell-32.jar
12
+ elif [[ " ${LANGUAGE} " == " nfl" ]]; then
13
+ curl -s https://get.nextflow.io | bash
14
+ mv nextflow $HOME /bin
12
15
fi
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env nextflow
2
+
3
+ bamFile = file(params. bam_input)
4
+
5
+ process bamstats {
6
+ input:
7
+ file bam_input from bamFile
8
+ val mem_gb from params. mem_gb
9
+
10
+ output:
11
+ file ' bamstats_report.zip'
12
+
13
+ """
14
+ bash /usr/local/bin/bamstats $mem_gb $bam_input
15
+ """
16
+ }
Original file line number Diff line number Diff line change
1
+ manifest {
2
+ description = ' Generate some stats on a BAM file'
3
+ author = ' Andrew Duncan'
4
+ }
5
+
6
+ params {
7
+ bam_input = ' rna.SRR948778.bam'
8
+ mem_gb = ' 4'
9
+ }
10
+
11
+ process. container = ' quay.io/collaboratory/dockstore-tool-bamstats:1.25-6_1.0'
12
+ docker {
13
+ enabled = true
14
+ docker. runOptions = ' -u $(id -u):$(id -g)'
15
+ }
Original file line number Diff line number Diff line change @@ -9,4 +9,6 @@ if [[ "${LANGUAGE}" == "cwl" ]]; then
9
9
cwltool --non-strict Dockstore.cwl test.json
10
10
elif [[ " ${LANGUAGE} " == " wdl" ]]; then
11
11
java -jar cromwell-32.jar run Dockstore.wdl --inputs test.wdl.json
12
+ elif [[ " ${LANGUAGE} " == " nfl" ]]; then
13
+ nextflow run main.nf
12
14
fi
You can’t perform that action at this time.
0 commit comments