-
Notifications
You must be signed in to change notification settings - Fork 4
/
rnaseq_pipeline_fastq_checker-tar.cwl
316 lines (287 loc) · 8.22 KB
/
rnaseq_pipeline_fastq_checker-tar.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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
#!/usr/bin/env cwl-runner
doc: |
A workflow to verify the proper execution of [TOPMed RNA-seq Workflow](https://github.com/heliumdatacommons/cwl_workflows/blob/master/topmed-workflows/TOPMed_RNAseq_pipeline/rnaseq_pipeline_fastq.cwl)
Expects the STAR Index and RSEM reference directories to be `tar.gz` files.
cwlVersion: v1.0
class: Workflow
id: "RNAseq-checker"
label: "RNAseq-checker"
requirements:
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement
- class: SubworkflowFeatureRequirement
inputs:
star_index_tar:
type: File
fastqs:
type: File[]
prefix_str:
type: string
rsem_ref_dir_tar:
type: File
max_frag_len:
type: int
estimate_rspd:
type: boolean
is_stranded:
type: boolean
paired_end:
type: boolean
genes_gtf:
type: File
genome_fasta:
type: File
secondaryFiles:
- .fai
- ^.dict
rnaseqc_flags:
type: string[]
# gatk_flags:
# type:
# type: "null"
# type: array
# items: string
hash_count_metrics:
type: string
hash_chimeric_junctions:
type: string
hash_read_counts:
type: string
hash_junctions:
type: string
hash_junctions_pass1:
type: string
# hash_markduplicates_metrics:
# type: string
hash_gene_results:
type: string
hash_isoforms_results:
type: string
# hash_gene_rpkm:
# type: string
# hash_gene_counts:
# type: string
# hash_exon_counts:
# type: string
# hash_count_outputs:
# type: string
checker_star_output_bam:
type: File
checker_transcriptome_bam:
type: File
checker_chimeric_bam_file:
type: File
checker_markduplicates_bam:
type: File
known_str:
type: string
outputs:
check_star_output_bam_str:
type: string
outputSource: check_star_output_bam/out_string
check_transcriptome_bam_str:
type: string
outputSource: check_transcriptome_bam/out_string
check_chimeric_bam_str:
type: string
outputSource: check_chimeric_bam/out_string
check_markduplicates_bam_str:
type: string
outputSource: check_markduplicates_bam/out_string
check_chimeric_junctions_hash:
type: string
outputSource: check_chimeric_junctions/out_hash_string
check_read_counts_hash:
type: string
outputSource: check_read_counts/out_hash_string
check_junctions_hash:
type: string
outputSource: check_junctions/out_hash_string
check_junctions_pass1_hash:
type: string
outputSource: check_junctions_pass1/out_hash_string
# check_markduplicates_metrics_hash:
# type: string
# outputSource: check_markduplicates_metrics/out_hash_string
check_gene_results_hash:
type: string
outputSource: check_gene_results/out_hash_string
check_isoforms_results_hash:
type: string
outputSource: check_isoforms_results/out_hash_string
# check_gene_rpkm_hash:
# type: string
# outputSource: check_gene_rpkm/out_hash_string
# check_gene_counts_hash:
# type: string
# outputSource: check_gene_counts/out_hash_string
# check_exon_counts_hash:
# type: string
# outputSource: check_exon_counts/out_hash_string
check_count_metrics_hash:
type: string
outputSource: check_count_metrics/out_hash_string
# check_count_outputs_hash:
# type: string
# outputSource: check_count_outputs/out_hash_string
steps:
untar_star_index:
run: components/untar_dir.cwl
in:
input_tar: star_index_tar
out: [untarred_dir]
untar_rsem_reference:
run: components/untar_dir.cwl
in:
input_tar: rsem_ref_dir_tar
out: [untarred_dir]
run_rnaseq_pipeline:
run: ../rnaseq_pipeline_fastq.cwl
in:
star_index: untar_star_index/untarred_dir
fastqs: fastqs
prefix_str: prefix_str
rsem_ref_dir: untar_rsem_reference/untarred_dir
max_frag_len: max_frag_len
estimate_rspd: estimate_rspd
is_stranded: is_stranded
paired_end: paired_end
genes_gtf: genes_gtf
genome_fasta: genome_fasta
rnaseqc_flags: rnaseqc_flags
# gatk_flags: gatk_flags
out:
[
star_output_bam,
star_output_bam_index,
star_output_transcriptome_bam,
star_output_chimeric_junctions,
star_output_chimeric_bam_file,
star_output_chimeric_bam_index,
star_output_read_counts,
star_output_junctions,
star_output_junctions_pass1,
star_output_logs,
markduplicates_output_bam,
markduplicates_output_metrics,
markduplicates_bam_index,
rsem_output_gene_results,
rsem_output_isoforms_results,
rna-seqc_output_gene_rpkm,
rna-seqc_output_gene_counts,
rna-seqc_output_exon_counts,
rna-seqc_output_count_metrics,
rna-seqc_output_count_outputs
]
check_star_output_bam:
run: check_bams_wf.cwl
in:
bam_one: run_rnaseq_pipeline/star_output_bam
bam_two: checker_star_output_bam
known_str: known_str
out: [out_string]
check_transcriptome_bam:
run: check_bams_wf.cwl
in:
bam_one: run_rnaseq_pipeline/star_output_transcriptome_bam
bam_two: checker_transcriptome_bam
known_str: known_str
out: [out_string]
check_chimeric_bam:
run: check_bams_wf.cwl
in:
bam_one: run_rnaseq_pipeline/star_output_chimeric_bam_file
bam_two: checker_chimeric_bam_file
known_str: known_str
out: [out_string]
check_markduplicates_bam:
run: check_bams_wf.cwl
in:
bam_one: run_rnaseq_pipeline/markduplicates_output_bam
bam_two: checker_markduplicates_bam
known_str: known_str
out: [out_string]
check_chimeric_junctions:
run: check_md5_wf.cwl
in:
file_to_check: run_rnaseq_pipeline/star_output_chimeric_junctions
input_hash: hash_chimeric_junctions
out: [out_hash_string]
check_read_counts:
run: check_md5_wf.cwl
in:
file_to_check: run_rnaseq_pipeline/star_output_read_counts
input_hash: hash_read_counts
out: [out_hash_string]
check_junctions:
run: check_md5_wf.cwl
in:
file_to_check: run_rnaseq_pipeline/star_output_junctions
input_hash: hash_junctions
out: [out_hash_string]
check_junctions_pass1:
run: check_md5_wf.cwl
in:
file_to_check: run_rnaseq_pipeline/star_output_junctions_pass1
input_hash: hash_junctions_pass1
out: [out_hash_string]
# check_markduplicates_metrics:
# run: check_md5_wf.cwl
# in:
# file_to_check: run_rnaseq_pipeline/markduplicates_output_metrics
# input_hash: hash_markduplicates_metrics
# out: [out_hash_string]
check_gene_results:
run: check_md5_wf.cwl
in:
file_to_check: run_rnaseq_pipeline/rsem_output_gene_results
input_hash: hash_gene_results
out: [out_hash_string]
check_isoforms_results:
run: check_md5_wf.cwl
in:
file_to_check: run_rnaseq_pipeline/rsem_output_isoforms_results
input_hash: hash_isoforms_results
out: [out_hash_string]
# check_gene_rpkm:
# run: check_md5_wf.cwl
# in:
# file_to_check: run_rnaseq_pipeline/rna-seqc_output_gene_rpkm
# input_hash: hash_gene_rpkm
# out: [out_hash_string]
# check_gene_counts:
# run: check_md5_wf.cwl
# in:
# file_to_check: run_rnaseq_pipeline/rna-seqc_output_gene_counts
# input_hash: hash_gene_counts
# out: [out_hash_string]
# check_exon_counts:
# run: check_md5_wf.cwl
# in:
# file_to_check: run_rnaseq_pipeline/rna-seqc_output_exon_counts
# input_hash: hash_exon_counts
# out: [out_hash_string]
check_count_metrics:
run: check_md5_wf.cwl
in:
file_to_check: run_rnaseq_pipeline/rna-seqc_output_count_metrics
input_hash: hash_count_metrics
out: [out_hash_string]
# check_count_outputs:
# run: check_md5_wf.cwl
# in:
# file_to_check: run_rnaseq_pipeline/rna-seqc_output_count_outputs
# input_hash: hash_count_outputs
# out: [out_hash_string]
$namespaces:
s: http://schema.org/
$schemas:
- http://dublincore.org/2012/06/14/dcterms.rdf
- http://xmlns.com/foaf/spec/20140114.rdf
- https://schema.org/docs/schema_org_rdfa.html
s:author:
- class: s:Person
s:id: https://orcid.org/0000-0003-3523-5312
s:email: christopherball@rti.org
s:name: Christopher Ball
s:codeRepository: https://github.com/heliumdatacommons/cwl_workflows