-
Notifications
You must be signed in to change notification settings - Fork 13
/
sc-rna-filter.cwl
928 lines (853 loc) · 26.3 KB
/
sc-rna-filter.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
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
cwlVersion: v1.1
class: Workflow
requirements:
- class: SubworkflowFeatureRequirement
- class: StepInputExpressionRequirement
- class: MultipleInputFeatureRequirement
- class: InlineJavascriptRequirement
expressionLib:
- var split_numbers = function(line) {
let splitted_line = line?line.split(/[\s,]+/).map(parseFloat):null;
return (splitted_line && !!splitted_line.length)?splitted_line:null;
};
"sd:upstream":
sc_rna_sample:
- "cellranger-aggr.cwl"
- "single-cell-preprocess-cellranger.cwl"
- "cellranger-multi.cwl"
- "sc-format-transform.cwl"
inputs:
alias:
type: string
label: "Analysis name"
sd:preview:
position: 1
filtered_feature_bc_matrix_folder:
type: File
label: "Cell Ranger RNA or RNA+VDJ Sample"
doc: |
Any "Cell Ranger RNA or RNA+VDJ Sample"
that produces gene expression data in
a form of compressed feature-barcode
matrix in a MEX format, optional annotated
V(D)J contigs data, and optional aggregation
metadata file in TSV/CSV format. This
sample can be obtained from one of the
following pipelines: "Cell Ranger Count
(RNA)", "Cell Ranger Count (RNA+VDJ)",
or "Cell Ranger Aggregate (RNA, RNA+VDJ)"
"sd:upstreamSource": "sc_rna_sample/filtered_feature_bc_matrix_folder"
"sd:localLabel": true
aggregation_metadata:
type: File?
"sd:upstreamSource": "sc_rna_sample/aggregation_metadata"
grouping_data:
type: File?
label: "Datasets grouping (optional)"
doc: |
If the selected "Cell Ranger RNA or
RNA+VDJ Sample" includes multiple
aggregated datasets, each dataset
can be assigned to a separate group
by providing a TSV/CSV file with
"library_id" and "condition"
columns. Obtain this file from
the "aggregation_metadata.csv"
output generated by "Cell Ranger
Aggregate (RNA, RNA+VDJ)" and
accessible on the "Files" tab. Remove
all columns except the "library_id".
Add the group names for each dataset
in a separate column named "condition".
barcodes_data:
type: File?
label: "Selected cell barcodes (optional)"
doc: |
A TSV/CSV file to optionally prefilter
the single cell data by including only
the cells with the selected barcodes.
The provided file should include at
least one column named "barcode", with
one cell barcode per line. All other
columns, except for "barcode", will be
added to the single cell metadata loaded
from "Cell Ranger RNA or RNA+VDJ Sample"
and can be utilized in the current or
future steps of analysis.
remove_doublets:
type: boolean?
default: false
label: "Remove doublets"
doc: |
Quality control filtering parameter
to remove cells identified as doublets.
Default: do not remove
"sd:layout":
advanced: true
minimum_umis:
type: string?
default: "500"
label: "Minimum number of RNA reads per cell"
doc: |
Quality control filtering threshold
to exclude from the analysis all
cells with the number of RNA reads
smaller than the provided value.
If the selected "Cell Ranger RNA or
RNA+VDJ Sample" includes multiple
aggregated datasets, each of them
can be filtered independently by
providing comma or space-separated
list of filtering thresholds. The
order and number of the specified
values need to match with the datasets
order from the "aggregation_metadata.csv"
output generated by "Cell Ranger RNA or
RNA+VDJ Sample" and accessible on the
"Files" tab. Any 0 will be replaced
with the auto-estimated threshold
(median - 2.5 * MAD) calculated per
dataset.
Default: 500
"sd:layout":
advanced: true
minimum_genes:
type: string?
default: "250"
label: "Minimum number of genes per cell"
doc: |
Quality control filtering threshold
to exclude from the analysis all
cells with the number of expressed
genes smaller than the provided value.
If the selected "Cell Ranger RNA or
RNA+VDJ Sample" includes multiple
aggregated datasets, each of them
can be filtered independently by
providing comma or space-separated
list of filtering thresholds. The
order and number of the specified
values need to match with the datasets
order from the "aggregation_metadata.csv"
output generated by "Cell Ranger RNA or
RNA+VDJ Sample" and accessible on the
"Files" tab. Any 0 will be replaced with
the auto-estimated threshold (median -
- 2.5 * MAD) calculated per dataset.
Default: 250
"sd:layout":
advanced: true
maximum_genes:
type: string?
default: "5000"
label: "Maximum number of genes per cell"
doc: |
Quality control filtering threshold
to exclude from the analysis all
cells with the number of expressed
genes bigger than the provided value.
If the selected "Cell Ranger RNA or
RNA+VDJ Sample" includes multiple
aggregated datasets, each of them
can be filtered independently by
providing comma or space-separated
list of filtering thresholds. The
order and number of the specified
values need to match with the datasets
order from the "aggregation_metadata.csv"
output generated by "Cell Ranger RNA or
RNA+VDJ Sample" and accessible on the
"Files" tab. Any 0 will be replaced with
the auto-estimated threshold (median +
+ 5 * MAD) calculated per dataset.
Default: 5000
"sd:layout":
advanced: true
mito_pattern:
type: string?
default: "^mt-|^MT-"
label: "Mitochondrial genes pattern"
doc: |
Regex pattern to identify mitochondrial
genes based on their names.
Default: "^mt-|^MT-"
"sd:layout":
advanced: true
maximum_mito_perc:
type: float?
default: 5
label: "Maximum mitochondrial percentage per cell"
doc: |
Quality control filtering threshold
to exclude from the analysis all
cells with the percentage of RNA reads
mapped to mitochondrial genes exceeding
the provided value. Set to 0 for using
an auto-estimated threshold equal to
the maximum among (median + 2 * MAD)
values calculated per dataset.
Default: 5
"sd:layout":
advanced: true
minimum_novelty_score:
type: string?
default: "0.8"
label: "Minimum novelty score per cell"
doc: |
Quality control filtering threshold
to exclude from the analysis all
cells with the novelty scores
smaller than the provided value.
This QC metrics indicates the overall
transcriptomic dissimilarity of the
cells and is calculated as the ratio
of log10(Genes) to log10(RNA UMI).
If the selected "Cell Ranger RNA or
RNA+VDJ Sample" includes multiple
aggregated datasets, each of them
can be filtered independently by
providing comma or space-separated
list of filtering thresholds. The
order and number of the specified
values need to match with the datasets
order from the "aggregation_metadata.csv"
output generated by "Cell Ranger RNA or
RNA+VDJ Sample" and accessible on the
"Files" tab.
tab. Default: 0.8
"sd:layout":
advanced: true
color_theme:
type:
- "null"
- type: enum
symbols:
- "gray"
- "bw"
- "linedraw"
- "light"
- "dark"
- "minimal"
- "classic"
- "void"
default: "classic"
label: "Color theme for all generated plots"
doc: |
Color theme for all generated plots. One of gray, bw, linedraw, light,
dark, minimal, classic, void.
Default: classic
"sd:layout":
advanced: true
threads:
type:
- "null"
- type: enum
symbols:
- "1"
- "2"
- "3"
- "4"
- "5"
- "6"
default: "4"
label: "Number of cores/cpus to use"
doc: |
Parallelization parameter to define the
number of cores/CPUs that can be utilized
simultaneously.
Default: 4
"sd:layout":
advanced: true
outputs:
raw_1_2_qc_mtrcs_pca_plot_png:
type: File?
outputSource: sc_rna_filter/raw_1_2_qc_mtrcs_pca_plot_png
label: "QC metrics PCA (1,2), raw"
doc: |
PC1 and PC2 from the QC metrics
PCA for raw data
"sd:visualPlugins":
- image:
tab: "Raw"
Caption: "QC metrics PCA (1,2)"
raw_2_3_qc_mtrcs_pca_plot_png:
type: File?
outputSource: sc_rna_filter/raw_2_3_qc_mtrcs_pca_plot_png
label: "QC metrics PCA (2,3), raw"
doc: |
PC2 and PC3 from the QC metrics
PCA for raw data
"sd:visualPlugins":
- image:
tab: "Raw"
Caption: "QC metrics PCA (2,3)"
raw_cells_count_plot_png:
type: File?
outputSource: sc_rna_filter/raw_cells_count_plot_png
label: "Cells per dataset, raw"
doc: |
Number of cells per dataset
for raw data
"sd:visualPlugins":
- image:
tab: "Raw"
Caption: "Cells per dataset"
raw_umi_dnst_plot_png:
type: File?
outputSource: sc_rna_filter/raw_umi_dnst_plot_png
label: "RNA reads per cell, raw"
doc: |
RNA reads per cell density
for raw data
"sd:visualPlugins":
- image:
tab: "Raw"
Caption: "RNA reads per cell"
raw_gene_dnst_plot_png:
type: File?
outputSource: sc_rna_filter/raw_gene_dnst_plot_png
label: "Genes per cell, raw"
doc: |
Genes per cell density
for raw data
"sd:visualPlugins":
- image:
tab: "Raw"
Caption: "Genes per cell"
raw_gene_umi_plot_png:
type: File?
outputSource: sc_rna_filter/raw_gene_umi_plot_png
label: "Genes vs RNA reads, raw"
doc: |
Genes vs RNA reads per cell
for raw data
"sd:visualPlugins":
- image:
tab: "Raw"
Caption: "Genes vs RNA reads"
raw_umi_mito_plot_png:
type: File?
outputSource: sc_rna_filter/raw_umi_mito_plot_png
label: "RNA reads vs mitochondrial %, raw"
doc: |
RNA reads vs mitochondrial % per cell
for raw data
"sd:visualPlugins":
- image:
tab: "Raw"
Caption: "RNA reads vs mitochondrial %"
raw_mito_dnst_plot_png:
type: File?
outputSource: sc_rna_filter/raw_mito_dnst_plot_png
label: "Mitochondrial percentage, raw"
doc: |
Percentage of RNA reads mapped to
mitochondrial genes per cell density
for raw data
"sd:visualPlugins":
- image:
tab: "Raw"
Caption: "Mitochondrial percentage"
raw_nvlt_dnst_plot_png:
type: File?
outputSource: sc_rna_filter/raw_nvlt_dnst_plot_png
label: "Novelty score, raw"
doc: |
Novelty score per cell density
for raw data
"sd:visualPlugins":
- image:
tab: "Raw"
Caption: "Novelty score"
raw_qc_mtrcs_dnst_plot_png:
type: File?
outputSource: sc_rna_filter/raw_qc_mtrcs_dnst_plot_png
label: "Main QC metrics, raw"
doc: |
Main QC metrics per cell densities
for raw data
"sd:visualPlugins":
- image:
tab: "Raw"
Caption: "Main QC metrics"
raw_rnadbl_plot_png:
type: File?
outputSource: sc_rna_filter/raw_rnadbl_plot_png
label: "RNA doublets, raw"
doc: |
Percentage of RNA doublets per
dataset for raw data
"sd:visualPlugins":
- image:
tab: "Raw"
Caption: "RNA doublets"
raw_umi_dnst_spl_cnd_plot_png:
type: File?
outputSource: sc_rna_filter/raw_umi_dnst_spl_cnd_plot_png
label: "RNA reads per cell, raw, split by condition"
doc: |
Split by grouping condition RNA reads
per cell density for raw data
"sd:visualPlugins":
- image:
tab: "Raw, by condition"
Caption: "RNA reads per cell"
raw_gene_dnst_spl_cnd_plot_png:
type: File?
outputSource: sc_rna_filter/raw_gene_dnst_spl_cnd_plot_png
label: "Genes per cell, raw, split by condition"
doc: |
Split by grouping condition genes
per cell for raw data
"sd:visualPlugins":
- image:
tab: "Raw, by condition"
Caption: "Genes per cell"
raw_mito_dnst_spl_cnd_plot_png:
type: File?
outputSource: sc_rna_filter/raw_mito_dnst_spl_cnd_plot_png
label: "Mitochondrial percentage, raw, split by condition"
doc: |
Split by grouping condition the
percentage of RNA reads mapped to
mitochondrial genes per cell density
for raw data
"sd:visualPlugins":
- image:
tab: "Raw, by condition"
Caption: "Mitochondrial percentage"
raw_nvlt_dnst_spl_cnd_plot_png:
type: File?
outputSource: sc_rna_filter/raw_nvlt_dnst_spl_cnd_plot_png
label: "Novelty score, raw, split by condition"
doc: |
Split by grouping condition the
novelty score per cell density
for raw data
"sd:visualPlugins":
- image:
tab: "Raw, by condition"
Caption: "Novelty score"
fltr_1_2_qc_mtrcs_pca_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_1_2_qc_mtrcs_pca_plot_png
label: "QC metrics PCA (1,2), filtered"
doc: |
PC1 and PC2 from the QC metrics
PCA for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered"
Caption: "QC metrics PCA (1,2)"
fltr_2_3_qc_mtrcs_pca_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_2_3_qc_mtrcs_pca_plot_png
label: "QC metrics PCA (2,3), filtered"
doc: |
PC2 and PC3 from the QC metrics
PCA for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered"
Caption: "QC metrics PCA (2,3)"
fltr_cells_count_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_cells_count_plot_png
label: "Cells per dataset, filtered"
doc: |
Number of cells per dataset
for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered"
Caption: "Cells per dataset"
fltr_umi_dnst_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_umi_dnst_plot_png
label: "RNA reads per cell, filtered"
doc: |
RNA reads per cell density
for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered"
Caption: "RNA reads per cell"
fltr_gene_dnst_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_gene_dnst_plot_png
label: "Genes per cell, filtered"
doc: |
Genes per cell density
for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered"
Caption: "Genes per cell"
fltr_gene_umi_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_gene_umi_plot_png
label: "RNA reads vs mitochondrial %, filtered"
doc: |
RNA reads vs mitochondrial % per cell
for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered"
Caption: "RNA reads vs mitochondrial %"
fltr_umi_mito_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_umi_mito_plot_png
label: "Genes vs RNA reads, filtered"
doc: |
Genes vs RNA reads per cell
for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered"
Caption: "Genes vs RNA reads"
fltr_mito_dnst_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_mito_dnst_plot_png
label: "Mitochondrial percentage, filtered"
doc: |
Percentage of RNA reads mapped to
mitochondrial genes per cell density
for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered"
Caption: "Mitochondrial percentage"
fltr_nvlt_dnst_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_nvlt_dnst_plot_png
label: "Novelty score, filtered"
doc: |
Novelty score per cell density
for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered"
Caption: "Novelty score"
fltr_qc_mtrcs_dnst_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_qc_mtrcs_dnst_plot_png
label: "Main QC metrics, filtered"
doc: |
Main QC metrics per cell densities
for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered"
Caption: "Main QC metrics"
fltr_rnadbl_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_rnadbl_plot_png
label: "RNA doublets, filtered"
doc: |
Percentage of RNA doublets per
dataset for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered"
Caption: "RNA doublets"
fltr_umi_dnst_spl_cnd_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_umi_dnst_spl_cnd_plot_png
label: "RNA reads per cell, filtered, split by condition"
doc: |
Split by grouping condition RNA reads
per cell density for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered, by condition"
Caption: "RNA reads per cell"
fltr_gene_dnst_spl_cnd_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_gene_dnst_spl_cnd_plot_png
label: "Genes per cell, filtered, split by condition"
doc: |
Split by grouping condition genes
per cell for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered, by condition"
Caption: "Genes per cell"
fltr_mito_dnst_spl_cnd_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_mito_dnst_spl_cnd_plot_png
label: "Mitochondrial percentage, filtered, split by condition"
doc: |
Split by grouping condition the
percentage of RNA reads mapped to
mitochondrial genes per cell density
for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered, by condition"
Caption: "Mitochondrial percentage"
fltr_nvlt_dnst_spl_cnd_plot_png:
type: File?
outputSource: sc_rna_filter/fltr_nvlt_dnst_spl_cnd_plot_png
label: "Novelty score, filtered, split by condition"
doc: |
Split by grouping condition the
novelty score per cell density
for filtered data
"sd:visualPlugins":
- image:
tab: "Filtered, by condition"
Caption: "Novelty score"
ucsc_cb_html_data:
type: Directory
outputSource: sc_rna_filter/ucsc_cb_html_data
label: "UCSC Cell Browser (data)"
doc: |
UCSC Cell Browser html data.
ucsc_cb_html_file:
type: File
outputSource: sc_rna_filter/ucsc_cb_html_file
label: "UCSC Cell Browser"
doc: |
UCSC Cell Browser html index.
"sd:visualPlugins":
- linkList:
tab: "Overview"
target: "_blank"
seurat_data_rds:
type: File
outputSource: sc_rna_filter/seurat_data_rds
label: "Seurat object in RDS format"
doc: |
Seurat object.
RDS format.
datasets_metadata:
type: File
outputSource: sc_rna_filter/datasets_metadata
label: "Example of datasets metadata"
doc: |
Example of datasets metadata file
in TSV format
pdf_plots:
type: File
outputSource: compress_pdf_plots/compressed_folder
label: "Compressed folder with all PDF plots"
doc: |
Compressed folder with all PDF plots.
sc_rna_filter_stdout_log:
type: File
outputSource: sc_rna_filter/stdout_log
label: "Output log"
doc: |
Stdout log from the sc_rna_filter step.
sc_rna_filter_stderr_log:
type: File
outputSource: sc_rna_filter/stderr_log
label: "Error log"
doc: |
Stderr log from the sc_rna_filter step.
steps:
uncompress_feature_bc_matrices:
doc: |
Extracts the content of TAR file into a folder
run: ../tools/tar-extract.cwl
in:
file_to_extract: filtered_feature_bc_matrix_folder
out:
- extracted_folder
sc_rna_filter:
doc: |
Filters single-cell RNA-Seq datasets based on the common QC metrics
run: ../tools/sc-rna-filter.cwl
in:
feature_bc_matrices_folder: uncompress_feature_bc_matrices/extracted_folder
aggregation_metadata: aggregation_metadata
grouping_data: grouping_data
barcodes_data: barcodes_data
rna_minimum_cells:
default: 1
minimum_genes:
source: minimum_genes
valueFrom: $(split_numbers(self))
maximum_genes:
source: maximum_genes
valueFrom: $(split_numbers(self))
minimum_umis:
source: minimum_umis
valueFrom: $(split_numbers(self))
minimum_novelty_score:
source: minimum_novelty_score
valueFrom: $(split_numbers(self))
mito_pattern: mito_pattern
maximum_mito_perc: maximum_mito_perc
remove_doublets: remove_doublets
verbose:
default: true
export_ucsc_cb:
default: true
export_pdf_plots:
default: true
color_theme: color_theme
parallel_memory_limit:
default: 32
vector_memory_limit:
default: 96
threads:
source: threads
valueFrom: $(parseInt(self))
out:
- raw_1_2_qc_mtrcs_pca_plot_png
- raw_2_3_qc_mtrcs_pca_plot_png
- raw_cells_count_plot_png
- raw_umi_dnst_plot_png
- raw_gene_dnst_plot_png
- raw_gene_umi_plot_png
- raw_umi_mito_plot_png
- raw_mito_dnst_plot_png
- raw_nvlt_dnst_plot_png
- raw_qc_mtrcs_dnst_plot_png
- raw_rnadbl_plot_png
- raw_umi_dnst_spl_cnd_plot_png
- raw_gene_dnst_spl_cnd_plot_png
- raw_mito_dnst_spl_cnd_plot_png
- raw_nvlt_dnst_spl_cnd_plot_png
- fltr_1_2_qc_mtrcs_pca_plot_png
- fltr_2_3_qc_mtrcs_pca_plot_png
- fltr_cells_count_plot_png
- fltr_umi_dnst_plot_png
- fltr_gene_dnst_plot_png
- fltr_gene_umi_plot_png
- fltr_umi_mito_plot_png
- fltr_mito_dnst_plot_png
- fltr_nvlt_dnst_plot_png
- fltr_qc_mtrcs_dnst_plot_png
- fltr_rnadbl_plot_png
- fltr_umi_dnst_spl_cnd_plot_png
- fltr_gene_dnst_spl_cnd_plot_png
- fltr_mito_dnst_spl_cnd_plot_png
- fltr_nvlt_dnst_spl_cnd_plot_png
- raw_1_2_qc_mtrcs_pca_plot_pdf
- raw_2_3_qc_mtrcs_pca_plot_pdf
- raw_cells_count_plot_pdf
- raw_umi_dnst_plot_pdf
- raw_gene_dnst_plot_pdf
- raw_gene_umi_plot_pdf
- raw_umi_mito_plot_pdf
- raw_mito_dnst_plot_pdf
- raw_nvlt_dnst_plot_pdf
- raw_qc_mtrcs_dnst_plot_pdf
- raw_rnadbl_plot_pdf
- raw_umi_dnst_spl_cnd_plot_pdf
- raw_gene_dnst_spl_cnd_plot_pdf
- raw_mito_dnst_spl_cnd_plot_pdf
- raw_nvlt_dnst_spl_cnd_plot_pdf
- fltr_1_2_qc_mtrcs_pca_plot_pdf
- fltr_2_3_qc_mtrcs_pca_plot_pdf
- fltr_cells_count_plot_pdf
- fltr_umi_dnst_plot_pdf
- fltr_gene_dnst_plot_pdf
- fltr_gene_umi_plot_pdf
- fltr_umi_mito_plot_pdf
- fltr_mito_dnst_plot_pdf
- fltr_nvlt_dnst_plot_pdf
- fltr_qc_mtrcs_dnst_plot_pdf
- fltr_rnadbl_plot_pdf
- fltr_umi_dnst_spl_cnd_plot_pdf
- fltr_gene_dnst_spl_cnd_plot_pdf
- fltr_mito_dnst_spl_cnd_plot_pdf
- fltr_nvlt_dnst_spl_cnd_plot_pdf
- ucsc_cb_html_data
- ucsc_cb_html_file
- seurat_data_rds
- datasets_metadata
- stdout_log
- stderr_log
folder_pdf_plots:
run: ../tools/files-to-folder.cwl
in:
input_files:
source:
- sc_rna_filter/raw_1_2_qc_mtrcs_pca_plot_pdf
- sc_rna_filter/raw_2_3_qc_mtrcs_pca_plot_pdf
- sc_rna_filter/raw_cells_count_plot_pdf
- sc_rna_filter/raw_umi_dnst_plot_pdf
- sc_rna_filter/raw_gene_dnst_plot_pdf
- sc_rna_filter/raw_gene_umi_plot_pdf
- sc_rna_filter/raw_umi_mito_plot_pdf
- sc_rna_filter/raw_mito_dnst_plot_pdf
- sc_rna_filter/raw_nvlt_dnst_plot_pdf
- sc_rna_filter/raw_qc_mtrcs_dnst_plot_pdf
- sc_rna_filter/raw_rnadbl_plot_pdf
- sc_rna_filter/raw_umi_dnst_spl_cnd_plot_pdf
- sc_rna_filter/raw_gene_dnst_spl_cnd_plot_pdf
- sc_rna_filter/raw_mito_dnst_spl_cnd_plot_pdf
- sc_rna_filter/raw_nvlt_dnst_spl_cnd_plot_pdf
- sc_rna_filter/fltr_1_2_qc_mtrcs_pca_plot_pdf
- sc_rna_filter/fltr_2_3_qc_mtrcs_pca_plot_pdf
- sc_rna_filter/fltr_cells_count_plot_pdf
- sc_rna_filter/fltr_umi_dnst_plot_pdf
- sc_rna_filter/fltr_gene_dnst_plot_pdf
- sc_rna_filter/fltr_gene_umi_plot_pdf
- sc_rna_filter/fltr_umi_mito_plot_pdf
- sc_rna_filter/fltr_mito_dnst_plot_pdf
- sc_rna_filter/fltr_nvlt_dnst_plot_pdf
- sc_rna_filter/fltr_qc_mtrcs_dnst_plot_pdf
- sc_rna_filter/fltr_rnadbl_plot_pdf
- sc_rna_filter/fltr_umi_dnst_spl_cnd_plot_pdf
- sc_rna_filter/fltr_gene_dnst_spl_cnd_plot_pdf
- sc_rna_filter/fltr_mito_dnst_spl_cnd_plot_pdf
- sc_rna_filter/fltr_nvlt_dnst_spl_cnd_plot_pdf
valueFrom: $(self.flat().filter(n => n))
folder_basename:
default: "pdf_plots"
out:
- folder
compress_pdf_plots:
run: ../tools/tar-compress.cwl
in:
folder_to_compress: folder_pdf_plots/folder
out:
- compressed_folder
$namespaces:
s: http://schema.org/
$schemas:
- https://github.com/schemaorg/schemaorg/raw/main/data/releases/11.01/schemaorg-current-http.rdf
label: "Single-Cell RNA-Seq Filtering Analysis"
s:name: "Single-Cell RNA-Seq Filtering Analysis"
s:alternateName: "Filters single-cell RNA-Seq datasets based on the common QC metrics"
s:downloadUrl: https://raw.githubusercontent.com/Barski-lab/workflows-datirium/master/workflows/sc-rna-filter.cwl
s:codeRepository: https://github.com/Barski-lab/workflows-datirium
s:license: http://www.apache.org/licenses/LICENSE-2.0
s:isPartOf:
class: s:CreativeWork
s:name: Common Workflow Language
s:url: http://commonwl.org/
s:creator:
- class: s:Organization
s:legalName: "Cincinnati Children's Hospital Medical Center"
s:location:
- class: s:PostalAddress
s:addressCountry: "USA"
s:addressLocality: "Cincinnati"
s:addressRegion: "OH"
s:postalCode: "45229"
s:streetAddress: "3333 Burnet Ave"
s:telephone: "+1(513)636-4200"
s:logo: "https://www.cincinnatichildrens.org/-/media/cincinnati%20childrens/global%20shared/childrens-logo-new.png"
s:department:
- class: s:Organization
s:legalName: "Allergy and Immunology"
s:department:
- class: s:Organization
s:legalName: "Barski Research Lab"
s:member:
- class: s:Person
s:name: Michael Kotliar
s:email: mailto:misha.kotliar@gmail.com
s:sameAs:
- id: http://orcid.org/0000-0002-6486-3898
doc: |
Single-Cell RNA-Seq Filtering Analysis
Removes low-quality cells from the outputs of “Cell Ranger Count (RNA)”,
“Cell Ranger Count (RNA+VDJ)”, and “Cell Ranger Aggregate (RNA, RNA+VDJ)”
pipelines. The results of this workflow are primarily used in “Single-Cell
RNA-Seq Dimensionality Reduction Analysis” pipeline.