forked from hubmapconsortium/mibi-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.cwl
64 lines (58 loc) · 1.3 KB
/
pipeline.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
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.1
inputs:
segmentation_method:
type: string
gpus:
type: string
data_dir:
type: Directory
meta_path:
type: File
outputs:
pipeline_output:
outputSource: collect_output/pipeline_output
type: Directory
label: "Expressions and segmentation masks in OME-TIFF format"
steps:
collect_dataset_info:
in:
data_dir:
source: data_dir
meta_path:
source: meta_path
out:
- pipeline_config
run: steps/collect_dataset_info.cwl
prepare_segmentation_channels:
in:
data_dir:
source: data_dir
pipeline_config:
source: collect_dataset_info/pipeline_config
out:
- segmentation_channels
run: steps/prepare_segmentation_channels.cwl
run_segmentation:
in:
method:
source: segmentation_method
dataset_dir:
source: prepare_segmentation_channels/segmentation_channels
gpus:
source: gpus
out:
- mask_dir
run: steps/run_segmentation.cwl
collect_output:
in:
data_dir:
source: data_dir
mask_dir:
source: run_segmentation/mask_dir
pipeline_config:
source: collect_dataset_info/pipeline_config
out:
- pipeline_output
run: steps/collect_output.cwl