-
Notifications
You must be signed in to change notification settings - Fork 0
/
mixcr.cwl
242 lines (196 loc) · 4.49 KB
/
mixcr.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
class: Workflow
cwlVersion: v1.1
requirements:
- class: SubworkflowFeatureRequirement
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement
- class: MultipleInputFeatureRequirement
inputs:
fastq_file_r1:
type: File
fastq_file_r2:
type: File
species:
type:
- type: enum
symbols:
- "hsa"
- "mmu"
- "rat"
starting_material:
type:
- type: enum
symbols:
- "rna"
- "dna"
receptor_type:
type:
- "null"
- type: enum
symbols:
- "xcr"
- "tcr"
- "bcr"
- "tra"
- "trb"
- "trg"
- "trd"
- "igh"
- "igk"
- "igl"
contig_assembly:
type: boolean?
impute_germline_on_export:
type: boolean?
only_productive:
type: boolean?
assemble_partial_rounds:
type: int?
do_not_extend_alignments:
type: boolean?
unweighted:
type: boolean?
amino_acid:
type: boolean?
top:
type: int?
intersect_type:
type: string?
downsample_to:
type: int?
extrapolate_to:
type: int?
resample_trials:
type: int?
threads:
type: int?
outputs:
all_clonotypes_file:
type: File
outputSource: mixcr_shotgun/all_clonotypes_file
report_file:
type: File
outputSource: mixcr_shotgun/report_file
vdj_file:
type: File?
outputSource: vdjtools_convert/vdj_file
basicstats_file:
type: File?
outputSource: vdjtools_calcbasicstats/basicstats_file
spectratype_files:
type:
- "null"
- type: array
items: File
outputSource: vdjtools_calcspectratype/spectratype_files
fancyspectra_file:
type: File?
outputSource: vdjtools_plotfancyspectratype/fancyspectra_file
fancyspectra_pdf:
type: File?
outputSource: vdjtools_plotfancyspectratype/fancyspectra_pdf
diversity_files:
type:
- "null"
- type: array
items: File
outputSource: vdjtools_calcdiversitystats/diversity_files
qstat_file:
type: File?
outputSource: vdjtools_plotquantilestats/qstat_file
qstat_pdf:
type: File?
outputSource: vdjtools_plotquantilestats/qstat_pdf
steps:
extract_fastq_file_r1:
run: ./extract-fastq.cwl
in:
compressed_file: fastq_file_r1
out:
- fastq_file
extract_fastq_file_r2:
run: ./extract-fastq.cwl
in:
compressed_file: fastq_file_r2
out:
- fastq_file
trim_adapters:
run: ./trimgalore.cwl
in:
input_file: extract_fastq_file_r1/fastq_file
input_file_pair: extract_fastq_file_r2/fastq_file
dont_gzip:
default: true
length:
default: 20
paired:
default: true
out:
- trimmed_file
- trimmed_file_pair
- report_file
- report_file_pair
mixcr_shotgun:
in:
species: species
fastq_file:
source: [trim_adapters/trimmed_file, trim_adapters/trimmed_file_pair]
starting_material: starting_material
receptor_type: receptor_type
contig_assembly: contig_assembly
impute_germline_on_export: impute_germline_on_export
only_productive: only_productive
assemble_partial_rounds: assemble_partial_rounds
do_not_extend_alignments: do_not_extend_alignments
threads: threads
out:
- all_clonotypes_file
- report_file
run: ./mixcr-shotgun.cwl
vdjtools_convert:
in:
clonotypes_file: mixcr_shotgun/all_clonotypes_file
out:
- vdj_file
run: ./vdjtools-convert.cwl
vdjtools_calcbasicstats:
in:
vdj_file: vdjtools_convert/vdj_file
unweighted: unweighted
out:
- basicstats_file
run: ./vdjtools-calcbasicstats.cwl
vdjtools_calcspectratype:
in:
vdj_file: vdjtools_convert/vdj_file
unweighted: unweighted
amino_acid: amino_acid
out:
- spectratype_files
run: ./vdjtools-calcspectratype.cwl
vdjtools_plotfancyspectratype:
in:
vdj_file: vdjtools_convert/vdj_file
top: top
out:
- fancyspectra_file
- fancyspectra_pdf
run: ./vdjtools-plotfancyspectratype.cwl
vdjtools_calcdiversitystats:
in:
vdj_file: vdjtools_convert/vdj_file
intersect_type: intersect_type
downsample_to: downsample_to
extrapolate_to: extrapolate_to
resample_trials: resample_trials
out:
- diversity_files
run: ./vdjtools-calcdiversitystats.cwl
vdjtools_plotquantilestats:
in:
vdj_file: vdjtools_convert/vdj_file
top: top
out:
- qstat_file
- qstat_pdf
run: ./vdjtools-plotquantilestats.cwl