Closed
Description
I am attempting to associate a secondaryFile
(BAI) with each File
is an array
(of BAMs).
I get desired behavior with the Jan26 release [0], but the following Jan27 release [1] breaks our cwl.
This the the cwl snippet
cwlVersion: "cwl:draft-2"
requirements:
- import: node-engine.cwl
- import: envvar-global.cwl
- class: DockerRequirement
dockerPull: quay.io/___
class: CommandLineTool
inputs:
- id: "#input_bam_path"
type:
type: array
items: File
inputBinding:
prefix: --bam_path
secondaryFiles:
- engine: node-engine.cwl
script: |
{
return {"path": $self.path.slice(0,-4)+".bai", "class": "File"};
}
with --debug
gives the desired bindings with the Jan26 release [2], but not with the Jan27 release [3].
I ran a diff
[4] of the two releases. It looks like secondaryFiles
are now in schema
instead of binding
. Is the post-Jan27 behavior the desired to our cwl?
[2]
{
"secondaryFiles": [
"${\nreturn {\"path\": self.path.slice(0,-4)+\".bai\", \"class\": \"File\"};\n}\n"
],
"prefix": "--bam_path",
"do_eval": {
"path": "/tmp/job633706396_ubuntu/SCRATCH/47b42e81-2500-4ebc-a0c2-acd3187cc2f0_513/test/C440.TCGA-IN-8462-01A-11D-2340-08.1.bam",
"class": "File",
"secondaryFiles": [
{
"path": "/tmp/job633706396_ubuntu/SCRATCH/47b42e81-2500-4ebc-a0c2-acd3187cc2f0_513/test/C440.TCGA-IN-8462-01A-11D-2340-08.1.bai",
"class": "File"
}
]
},
"valueFrom": {
"path": "/tmp/job633706396_ubuntu/SCRATCH/47b42e81-2500-4ebc-a0c2-acd3187cc2f0_513/test/C440.TCGA-IN-8462-01A-11D-2340-08.1.bam",
"class": "File",
"secondaryFiles": [
{
"path": "/tmp/job633706396_ubuntu/SCRATCH/47b42e81-2500-4ebc-a0c2-acd3187cc2f0_513/test/C440.TCGA-IN-8462-01A-11D-2340-08.1.bai",
"class": "File"
}
]
},
"position": [
0,
0,
"input_bam_path",
"input_bam_path"
]
},
[3]
{
"position": [
0,
0,
"input_bam_path",
"input_bam_path"
],
"prefix": "--bam_path",
"do_eval": {
"path": "/tmp/job557517512_test/C440.TCGA-IN-8462-01A-11D-2340-08.1.bam",
"class": "File"
},
"valueFrom": {
"path": "/tmp/job557517512_test/C440.TCGA-IN-8462-01A-11D-2340-08.1.bam",
"class": "File"
}
},
[4]
https://gist.github.com/jeremiahsavage/c82b38027be30eccbf9b47361c8f7fbb
Metadata
Metadata
Assignees
Labels
No labels