Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (56 sloc) 1.1 KB
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
inputs:
inp:
type:
type: array
items:
type: record
name: instr
fields:
- name: instr
type: string
outputs:
out:
type:
type: array
items: string
outputSource: step1/echo_out
requirements:
- class: ScatterFeatureRequirement
- class: StepInputExpressionRequirement
steps:
step1:
in:
echo_in:
source: inp
valueFrom: $(self.instr)
first:
source: inp
valueFrom: "$(self[0].instr)"
out: [echo_out]
scatter: echo_in
run:
class: CommandLineTool
inputs:
first:
type: string
inputBinding:
position: 1
echo_in:
type: string
inputBinding:
position: 2
outputs:
echo_out:
type: string
outputBinding:
glob: "step1_out"
loadContents: true
outputEval: $(self[0].contents)
baseCommand: "echo"
arguments:
- "-n"
- "foo"
stdout: "step1_out"
You can’t perform that action at this time.