-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path04-quantification.cwl
87 lines (87 loc) · 2.4 KB
/
04-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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.0
doc: STARR-seq 04 quantification
requirements:
- class: ScatterFeatureRequirement
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement
- class: SubworkflowFeatureRequirement
inputs:
input_bam_files:
type: File[]
secondaryFiles:
- .bai
input_dedup_bam_files:
type: File[]
secondaryFiles:
- .bai
ENCODE_blacklist_bedfile:
doc: Bedfile containing ENCODE consensus blacklist regions to be excluded.
type: File
nthreads:
default: 1
type: int
outputs:
bw_dedup_norm_files:
doc: Normalized by RPKM bigWig files.
type: File[]
outputSource: bamcoverage-dedup/output_bam_coverage
bw_with_dups_norm_files:
doc: Normalized by RPKM bigWig files.
type: File[]
outputSource: bamcoverage-with-dups/output_bam_coverage
bw_dedup_raw_files:
doc: Raw 1bp bigWig files.
type: File[]
outputSource: bamcoverage-dedup-raw/output_bam_coverage
steps:
bamcoverage-dedup:
run: ../quant/deeptools-bamcoverage.cwl
scatter: bam
in:
bam: input_dedup_bam_files
blackListFileName: ENCODE_blacklist_bedfile
extendReads:
valueFrom: $(true)
binSize:
valueFrom: ${return 1}
numberOfProcessors: nthreads
outFileName:
valueFrom: $(inputs.bam.nameroot.replace(/\.[^/.]+$/, '.rpkm.bw'))
normalizeUsing:
valueFrom: RPKM
out:
- output_bam_coverage
bamcoverage-with-dups:
run: ../quant/deeptools-bamcoverage.cwl
scatter: bam
in:
bam: input_bam_files
blackListFileName: ENCODE_blacklist_bedfile
extendReads:
valueFrom: $(true)
binSize:
valueFrom: ${return 1}
numberOfProcessors: nthreads
outFileName:
valueFrom: $(inputs.bam.nameroot.replace(/\.[^/.]+$/, '.rpkm.bw'))
normalizeUsing:
valueFrom: RPKM
out:
- output_bam_coverage
bamcoverage-dedup-raw:
run: ../quant/deeptools-bamcoverage.cwl
scatter: bam
in:
bam: input_dedup_bam_files
blackListFileName: ENCODE_blacklist_bedfile
extendReads:
valueFrom: $(true)
binSize:
valueFrom: ${return 1}
numberOfProcessors: nthreads
outFileName:
valueFrom: $(inputs.bam.nameroot.replace(/\.[^/.]+$/, '.raw.bw'))
out:
- output_bam_coverage