-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathoxog_sub_wf.cwl
66 lines (61 loc) · 1.82 KB
/
oxog_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
#!/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: oxog_varbam_annotate_util.js }
- class: SubworkflowFeatureRequirement
class: Workflow
outputs:
oxogVCF:
outputSource: sub_run_oxog/oxogVCF
type: File[]
inputs:
vcfsForOxoG:
type: File[]
inputFileDirectory:
type: Directory
in_data:
type: "TumourType.yaml#TumourType"
refDataDir:
type: Directory
steps:
sub_run_oxog:
run: oxog.cwl
in:
inputFileDirectory: inputFileDirectory
tumourID:
source: [in_data]
valueFrom: |
${
return self.tumourId
}
tumourBamFilename:
source: [inputFileDirectory, in_data]
valueFrom: |
${
return { "class":"File", "location": self[0].location + "/" + self[1].bamFileName }
}
refDataDir: refDataDir
oxoQScore:
source: [in_data]
valueFrom: |
${
return self.oxoQScore
}
vcfNames:
source: [in_data, vcfsForOxoG]
valueFrom: |
${
return createArrayOfFilesForOxoG(self[0], self[1])
}
out: [oxogVCF]