-
Notifications
You must be signed in to change notification settings - Fork 1
/
workflow.cwl
79 lines (67 loc) · 1.61 KB
/
workflow.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
#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: Workflow
label: Kallisto RNA-seq example
inputs:
reference: File?
reference_url: string
reference_filename: string
index: File?
index_filename: string
runid: string
runfastq: File?
runfastq_filename: string
runquant: string
steps:
download:
run: download_chicken_reference.cwl
in:
url: reference_url
reference: reference
out: reference_filename
when: $(inputs.reference === null)
out: [downloaded_file]
kallisto_index:
run: kallisto_index.cwl
in:
fasta:
source: [download/downloaded_file, reference]
pickValue: the_only_non_null
index_out: index_filename
index: index
when: $(inputs.index === null)
out: [index_file]
get_fastq:
run: download_ebi.cwl
in:
runid: runid
outfile: runfastq_filename
runfastq: runfastq
when: $(inputs.runfastq === null)
out: [fqone]
kallisto_quant:
run: kallisto_quant.cwl
in:
fastq:
source: [get_fastq/fqone, runfastq]
pickValue: the_only_non_null
index:
source: [kallisto_index/index_file, index]
pickValue: the_only_non_null
outdir: runquant
out: [quantdir]
outputs:
kallisto_index_file:
type: File
outputSource: [kallisto_index/index_file, index]
pickValue: the_only_non_null
fqone:
type: File
outputSource: [get_fastq/fqone, runfastq]
pickValue: the_only_non_null
quantdir:
type: Directory
outputSource: kallisto_quant/quantdir
requirements:
InlineJavascriptRequirement: {}
MultipleInputFeatureRequirement: {}