-
Notifications
You must be signed in to change notification settings - Fork 17
/
05-quantification.cwl
68 lines (68 loc) · 1.61 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
class: Workflow
cwlVersion: v1.0
doc: ATAC-seq - Quantification
requirements:
- class: ScatterFeatureRequirement
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement
inputs:
input_bam_files:
type: File[]
input_genome_sizes:
type: File
nthreads:
default: 1
type: int
steps:
bamcoverage:
run: ../quant/deeptools-bamcoverage.cwl
scatter: bam
in:
bam: input_bam_files
numberOfProcessors: nthreads
normalizeUsing:
valueFrom: RPKM
binSize:
valueFrom: ${return 1}
output_suffix:
valueFrom: .rpkm.bw
extendReads:
valueFrom: ${return 200}
out:
- output_bam_coverage
bedtools_genomecov:
run: ../map/bedtools-genomecov.cwl
scatter: ibam
in:
bg:
valueFrom: ${return true}
g: input_genome_sizes
ibam: input_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
scatter: bed_graph
in:
output_suffix:
valueFrom: .raw.bw
genome_sizes: input_genome_sizes
bed_graph: bedsort_genomecov/bed_file_sorted
out:
- output_bigwig
outputs:
bigwig_raw_files:
doc: Raw reads bigWig (signal) files
type: File[]
outputSource: bdg2bw-raw/output_bigwig
bigwig_norm_files:
doc: signal files of pileup reads in RPKM
type: File[]
outputSource: bamcoverage/output_bam_coverage