-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path05-quantification-with-control.cwl
119 lines (119 loc) · 3.15 KB
/
05-quantification-with-control.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
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.0
doc: 'ChIP-seq - Quantification - samples: treatment and control'
requirements:
- class: ScatterFeatureRequirement
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement
inputs:
input_trt_bam_files:
type: File[]
input_ctrl_bam_files:
type: File[]
input_genome_sizes:
type: File
nthreads:
default: 1
type: int
steps:
bedtools_genomecov:
run: ../map/bedtools-genomecov.cwl
scatter: ibam
in:
bg:
valueFrom: ${return true}
g: input_genome_sizes
ibam: input_trt_bam_files
out:
- output_bedfile
bedsort_genomecov:
run: ../quant/bedSort.cwl
scatter: bed_file
in:
bed_file: bedtools_genomecov/output_bedfile
out:
- bed_file_sorted
bdg2bw-raw:
run: ../quant/bedGraphToBigWig.cwl
in:
output_suffix:
valueFrom: .raw.bw
genome_sizes: input_genome_sizes
bed_graph: bedsort_genomecov/bed_file_sorted
scatter: bed_graph
out:
- output_bigwig
bamCoverage-rpkm-trt:
run: ../quant/deeptools-bamcoverage.cwl
scatter: bam
in:
bam: input_trt_bam_files
numberOfProcessors: nthreads
outFileFormat:
valueFrom: bigwig
extendReads:
valueFrom: ${return 200}
normalizeUsing:
valueFrom: RPKM
binSize:
valueFrom: ${return 1}
output_suffix:
valueFrom: .rpkm.bw
out:
- output_bam_coverage
bamCoverage-rpkm-ctrl:
run: ../quant/deeptools-bamcoverage.cwl
in:
bam: input_ctrl_bam_files
numberOfProcessors: nthreads
outFileFormat:
valueFrom: bigwig
extendReads:
valueFrom: ${return 200}
normalizeUsing:
valueFrom: RPKM
binSize:
valueFrom: ${return 1}
output_suffix:
valueFrom: .rpkm.bw
scatter: bam
out:
- output_bam_coverage
bamCompare-ctrl-subtracted-rpkm:
run: ../quant/deeptools-bigwigcompare.cwl
scatterMethod: dotproduct
scatter:
- bigwig1
- bigwig2
in:
numberOfProcessors: nthreads
operation:
valueFrom: subtract
bigwig1: bamCoverage-rpkm-trt/output_bam_coverage
bigwig2: bamCoverage-rpkm-ctrl/output_bam_coverage
binSize:
valueFrom: ${return 1}
outFileFormat:
valueFrom: bigwig
output_suffix:
valueFrom: .ctrl_subtracted.bw
out:
- output
outputs:
bigwig_raw_files:
doc: Raw reads bigWig (signal) files
type: File[]
outputSource: bdg2bw-raw/output_bigwig
bigwig_rpkm_extended_files:
doc: Fragment extended RPKM bigWig (signal) files
type: File[]
outputSource: bamCoverage-rpkm-trt/output_bam_coverage
bigwig_ctrl_subtracted_rpkm_extended_files:
doc: Control subtracted fragment extended RPKM bigWig (signal) files
type: File[]
outputSource: bamCompare-ctrl-subtracted-rpkm/output
bigwig_ctrl_rpkm_extended_files:
doc: Fragment extended RPKM bigWig (signal) control files
type: File[]
outputSource: bamCoverage-rpkm-ctrl/output_bam_coverage