-
Notifications
You must be signed in to change notification settings - Fork 2
/
minibam_sub_wf.cwl
67 lines (61 loc) · 1.77 KB
/
minibam_sub_wf.cwl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
doc: |
This is a subworkflow of the main oxog_varbam_annotat_wf workflow - this is not meant to be
run as a stand-alone workflow!
requirements:
- class: SchemaDefRequirement
types:
- $import: TumourType.yaml
- class: ScatterFeatureRequirement
- class: StepInputExpressionRequirement
- class: MultipleInputFeatureRequirement
- class: InlineJavascriptRequirement
expressionLib:
- { $include: varbam_util.js }
- class: SubworkflowFeatureRequirement
class: Workflow
outputs:
minibam:
outputSource: sub_run_var_bam/minibam
type: File
minibamIndex:
outputSource: sub_run_var_bam/minibamIndex
type: File
inputs:
inputFileDirectory:
type: Directory
tumour:
type: "TumourType.yaml#TumourType"
indel-padding:
type: string
snv-padding:
type: string
sv-padding:
type: string
input-indel:
type: File
input-snv:
type: File
input-sv:
type: File
steps:
sub_run_var_bam:
run: Variantbam-for-dockstore/variantbam.cwl
in:
input-bam:
source: [inputFileDirectory, tumour]
valueFrom: |
${
return { "class":"File", "location": self[0].location + "/" + self[1].bamFileName }
}
outfile:
source: [tumour]
valueFrom: $("mini-".concat(self.tumourId).concat(".bam"))
snv-padding: snv-padding
sv-padding: sv-padding
indel-padding: indel-padding
input-snv: input-snv
input-sv: input-sv
input-indel: input-indel
out: [minibam, minibamIndex]