-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathmarkfiles.cwl
141 lines (130 loc) · 2.92 KB
/
markfiles.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
cwlVersion: v1.0
class: Workflow
requirements:
- class: SubworkflowFeatureRequirement
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement
inputs:
sampleID:
type: string
mergedMAF:
type: File
markSamples:
type: Directory
markVariants:
type: Directory
steps:
firstMarkPrep:
run: ./utils/dirgrep.cwl
in:
pattern: sampleID
infiles: markSamples
out:
- grepout
firstMap:
run: ./tools/markfiles-tool/key-map.cwl
in:
markList: firstMarkPrep/grepout
mergedMAF: mergedMAF
outMAF:
valueFrom: $(inputs.mergedMAF.nameroot).map1.maf
out:
- mappedMAF
firstSort:
run:
class: CommandLineTool
requirements:
- class: ShellCommandRequirement
arguments:
- {valueFrom: "sort -o", position: 1, shellQuote: false}
inputs:
toSort:
type: File
inputBinding:
position: 3
outSort:
type: string
inputBinding:
position: 2
outputs:
sortedMAF:
type: File
outputBinding:
glob: $(inputs.outSort)
in:
toSort: firstMap/mappedMAF
outSort:
valueFrom: $(inputs.toSort.nameroot).sort1.maf
out:
- sortedMAF
firstReduce:
run: ./tools/markfiles-tool/key-reduce.cwl
in:
mappedMAF: firstSort/sortedMAF
origMAF: mergedMAF
appendFlag:
default: true
outMAF:
valueFrom: $(inputs.mappedMAF.nameroot).reduce1.maf
out:
- reducedMAF
secondMarkPrep:
run: ./utils/dirgrep.cwl
in:
pattern: sampleID
infiles: markVariants
out:
- grepout
secondMap:
run: ./tools/markfiles-tool/key-map.cwl
in:
markList: secondMarkPrep/grepout
mergedMAF: firstReduce/reducedMAF
useNorm:
default: 1
outMAF:
valueFrom: $(inputs.mergedMAF.nameroot).map2.maf
out:
- mappedMAF
secondSort:
run:
class: CommandLineTool
requirements:
- class: ShellCommandRequirement
arguments:
- {valueFrom: "sort -o", position: 1, shellQuote: false}
inputs:
toSort:
type: File
inputBinding:
position: 3
outSort:
type: string
inputBinding:
position: 2
outputs:
sortedMAF:
type: File
outputBinding:
glob: $(inputs.outSort)
in:
toSort: secondMap/mappedMAF
outSort:
valueFrom: $(inputs.toSort.nameroot).sort2.maf
out:
- sortedMAF
secondReduce:
run: ./tools/markfiles-tool/key-reduce.cwl
in:
mappedMAF: secondSort/sortedMAF
origMAF: mergedMAF
appendFlag:
default: true
outMAF:
valueFrom: $(inputs.origMAF.nameroot).marked.maf
out:
- reducedMAF
outputs:
markedMAF:
type: File
outputSource: secondReduce/reducedMAF