Entering edit mode
7.7 years ago
awilke1972
▴
20
How to set exclusive parameters within a worklfow?
Following the example for command line tools the job document looks like:
myDir:
class: Directory
path: /pipeline/CWL/Data/Inputs
myFile:
class: File
path: /pipeline/CWL/Tools/ls.tool.yaml
exclusive_parameters:
sortBySize: true
where sortBySize is the parameter within the workflow and bysize the exclusive parameter for the tool.
Workflow:
cwlVersion: v1.0
class: Workflow
inputs:
myFile: File
myDir: Directory
sortBySize:
type: boolean?
default: true
outputs:
summary:
type: File
outputSource: getSummary/output
steps:
getSummary:
run: ../Tools/ls.tool.yaml
in:
myfile: myFile
mydir: myDir
exclusive_parameters:
bysize: sortBySize
out: [output,error]
Tool:
cwlVersion: v1.0
class: CommandLineTool
baseCommand: [ls , .]
stdout: ls.log
stderr: error.log
inputs:
mydir:
type: Directory
myfile:
type: File
exclusive_parameters:
type:
- type: record
name: listingByTime
fields:
longlisting:
type: boolean
inputBinding:
prefix: -ltr
- type: record
name: size
fields:
bysize:
type: boolean
inputBinding:
prefix: -S
outputs:
output:
type: stdout
error:
type: stderr