Skip to content

Commit dc037b0

Browse files
authored
Merge pull request #16 from jfennick/custom_tag_explicit_edge_syntax
Custom tag explicit edge syntax
2 parents 52b8b10 + dd9310e commit dc037b0

File tree

4 files changed

+31
-16
lines changed

4 files changed

+31
-16
lines changed

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"yaml.customTags": [
3+
"!&",
4+
"!*",
5+
"!ii"
6+
]
7+
}

workflows/bbbc.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ def workflow() -> Workflow:
1111
subdirectory = Step(clt_path='../workflow-inference-compiler/cwl_adapters/subdirectory.cwl')
1212
subdirectory.directory = bbbcdownload.outDir
1313
subdirectory.glob_pattern = 'bbbcdownload.outDir/BBBC/BBBC001/raw/Images/human_ht29_colon_cancer_1_images/'
14-
subdirectory.subdirectory = Path('subdirectory.subdirectory')
1514

1615
filerenaming = Step(clt_path='../image-workflows/cwl_adapters/file-renaming.cwl')
1716
# NOTE: FilePattern {} syntax shadows python f-string {} syntax

workflows/bbbc.yml

+24-13
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,49 @@ steps:
22
- bbbcdownload:
33
in:
44
name: BBBC001
5-
outDir: '&bbbcdownload.outDir'
5+
outDir: bbbcdownload.outDir
6+
out:
7+
- outDir: !& bbbcdownload.outDir
68
- subdirectory:
79
in:
8-
directory: '*bbbcdownload.outDir'
10+
directory: !* bbbcdownload.outDir
911
glob_pattern: bbbcdownload.outDir/BBBC/BBBC001/raw/Images/human_ht29_colon_cancer_1_images/
10-
subdirectory: '&subdirectory.subdirectory'
12+
out:
13+
- subdirectory: !& subdirectory.subdirectory
1114
- file-renaming:
1215
in:
1316
filePattern: .*_{row:c}{col:dd}f{f:dd}d{channel:d}.tif
14-
inpDir: '*subdirectory.subdirectory'
15-
outDir: '&file-renaming.outDir'
17+
inpDir: !* subdirectory.subdirectory
18+
outDir: file-renaming.outDir
1619
outFilePattern: x{row:dd}_y{col:dd}_p{f:dd}_c{channel:d}.tif
20+
out:
21+
- outDir: !& file-renaming.outDir
1722
- ome-converter:
1823
in:
1924
fileExtension: .ome.tif
2025
filePattern: .*.tif
21-
inpDir: '*file-renaming.outDir'
22-
outDir: '&omeconverter.outDir'
26+
inpDir: !* file-renaming.outDir
27+
outDir: omeconverter.outDir
28+
out:
29+
- outDir: !& omeconverter.outDir
2330
- montage:
2431
in:
2532
filePattern: x00_y03_p{p:dd}_c0.ome.tif
26-
inpDir: '*omeconverter.outDir'
33+
inpDir: !* omeconverter.outDir
2734
layout: p
28-
outDir: '&montage.outDir'
35+
outDir: montage.outDir
36+
out:
37+
- outDir: !& montage.outDir
2938
- image_assembler:
3039
in:
31-
imgPath: '*omeconverter.outDir'
32-
outDir: '&image_assembler.outDir'
33-
stitchPath: '*montage.outDir'
40+
imgPath: !* omeconverter.outDir
41+
outDir: image_assembler.outDir
42+
stitchPath: !* montage.outDir
43+
out:
44+
- outDir: !& image_assembler.outDir
3445
- precompute_slide:
3546
in:
3647
imageType: image
37-
inpDir: '*image_assembler.outDir'
48+
inpDir: !* image_assembler.outDir
3849
outDir: precompute_slide.outDir
3950
pyramidType: Zarr

workflows/bbbc_sub.py

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ def workflow() -> Workflow:
1313
subdirectory = Step(clt_path='../workflow-inference-compiler/cwl_adapters/subdirectory.cwl')
1414
subdirectory.directory = bbbcdownload.outDir
1515
subdirectory.glob_pattern = 'bbbcdownload.outDir/BBBC/BBBC001/raw/Images/human_ht29_colon_cancer_1_images/'
16-
subdirectory.subdirectory = Path('subdirectory.subdirectory')
1716

1817
filerenaming = Step(clt_path='cwl_adapters/file-renaming.cwl')
1918
# NOTE: FilePattern {} syntax shadows python f-string {} syntax
@@ -46,7 +45,6 @@ def workflow2() -> Workflow:
4645
# i.e. This is the API for the subworkflow.
4746
subworkflow.steps[0].directory = subworkflow.directory
4847
subworkflow.steps[0].glob_pattern = subworkflow.glob_pattern
49-
subworkflow.steps[0].subdirectory = Path('subdirectory.subdirectory')
5048

5149
# Then apply arguments at the call site.
5250
# Notice how the caller does not need to know about the internal details of the subworkflow

0 commit comments

Comments
 (0)