-
Notifications
You must be signed in to change notification settings - Fork 17
/
05-quantification.cwl
71 lines (71 loc) · 1.75 KB
/
05-quantification.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
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.0
doc: 'ChIP-seq - Quantification - samples: treatment'
requirements:
- class: ScatterFeatureRequirement
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement
inputs:
input_trt_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
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