Hi,
I am trying to run the following CommandLineTool description:
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: CommandLineTool
hints:
DockerRequirement:
dockerPull: quay.io/biocontainers/kallisto:0.44.0--h7d86c95_2
inputs:
fastqs:
type: File[]
inputBinding: {}
index:
type: File
inputBinding:
prefix: "--index"
baseCommand: [ "kallisto", "quant" ]
arguments:
- valueFrom: $(runtime.outdir)
prefix: --output-dir
outputs:
quantification:
type: File
outputBinding:
glob: abundance.tsv
Using this command:
cwltool kallisto-quant.cwl kallisto-quant.json
It throws the following error:
Error collecting output for parameter 'quantification':
kallisto-quant.cwl:31:4: Did not find output file with glob pattern: '['abundance.tsv']'
The complete docker command looks fine to me and runs successfully without cwltool (with the same arguments).
The complete output of the cwltool run command is:
(cwl) 4180L-137952-M ~/Documents/UMCCR/Play/cwl-metrics/kallisto $ cwltool kallisto-quant.cwl kallisto-quant.json
/Users/kanwals/virtualenvironment/cwl/bin/cwltool 1.0.20180719140605
Resolved 'kallisto-quant.cwl' to 'file:///Users/kanwals/Documents/UMCCR/Play/cwl-metrics/kallisto/kallisto-quant.cwl'
[job kallisto-quant.cwl] /private/tmp/docker_tmp1tk42cjr$ docker \
run \
-i \
--volume=/private/tmp/docker_tmp1tk42cjr:/var/spool/cwl:rw \
--volume=/private/var/folders/_v/g24brqws13v3gtrvcz2j57ldbdw8jg/T/tmp8t7700g9:/tmp:rw \
--volume=/Users/kanwals/Documents/UMCCR/Play/cwl-metrics/kallisto/input/fusion-1_1.fq:/var/lib/cwl/stg4024e429-2f7e-40f2-b701-5b12dd6c3cad/fusion-1_1.fq:ro \
--volume=/Users/kanwals/Documents/UMCCR/Play/cwl-metrics/kallisto/input/fusion-1_2.fq:/var/lib/cwl/stg38cb4274-de7f-41ba-bd37-050cd3825377/fusion-1_2.fq:ro \
--volume=/Users/kanwals/Documents/UMCCR/Play/cwl-metrics/kallisto/index/GRCh37.idx:/var/lib/cwl/stg3bc0fbee-9d95-480b-8cb6-23a2862b6f0d/GRCh37.idx:ro \
--workdir=/var/spool/cwl \
--read-only=true \
--user=1457398319:2094513965 \
--rm \
--env=TMPDIR=/tmp \
--env=HOME=/var/spool/cwl \
--memory=1024m \
quay.io/biocontainers/kallisto:0.44.0--h7d86c95_2 \
kallisto \
quant \
--output-dir \
out \
/var/lib/cwl/stg4024e429-2f7e-40f2-b701-5b12dd6c3cad/fusion-1_1.fq \
/var/lib/cwl/stg38cb4274-de7f-41ba-bd37-050cd3825377/fusion-1_2.fq \
--index \
/var/lib/cwl/stg3bc0fbee-9d95-480b-8cb6-23a2862b6f0d/GRCh37.idx
[quant] fragment length distribution will be estimated from the data
[index] k-mer length: 31
[index] number of targets: 196,501
[index] number of k-mers: 116,739,414
[job kallisto-quant.cwl] Job error:
Error collecting output for parameter 'quantification':
kallisto-quant.cwl:31:4: Did not find output file with glob pattern: '['abundance.tsv']'
[job kallisto-quant.cwl] completed permanentFail
{}
Final process status is permanentFail
Any help to resolve this issue will be highly appreciated.
Thanks.
Thanks @inutano. It did the trick :)