-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbasic-flatfield-estimation.cwl
115 lines (98 loc) · 3.14 KB
/
basic-flatfield-estimation.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.0
label: BaSiC Flatfield Estimation
doc: |-
This WIPP plugin will take a collection of images and use the BaSiC flatfield correction algorithm to generate a flatfield image, a darkfield image, and a photobleach offset.
https://github.com/PolusAI/polus-plugins/tree/master/regression/basic-flatfield-estimation-plugin
requirements:
DockerRequirement:
dockerPull: polusai/basic-flatfield-estimation-plugin:2.1.1
# See https://www.commonwl.org/v1.0/CommandLineTool.html#InitialWorkDirRequirement
InitialWorkDirRequirement:
listing:
- entry: $(inputs.outDir)
writable: true # Output directories must be writable
InlineJavascriptRequirement: {}
# See https://github.com/PolusAI/workflow-inference-compiler/blob/master/docker_remove_entrypoints.py
baseCommand: python3
arguments: ["-m", "polus.plugins.regression.basic_flatfield_estimation"]
# "jax._src.xla_bridge - WARNING - An NVIDIA GPU may be present on this machine, but a CUDA-enabled jaxlib is not installed. Falling back to cpu."
hints:
cwltool:CUDARequirement:
cudaVersionMin: "11.4"
cudaComputeCapabilityMin: "3.0"
cudaDeviceCountMin: 1
cudaDeviceCountMax: 1
inputs:
inpDir:
label: Path to input images
doc: |-
Path to input images
type: Directory
inputBinding:
prefix: --inpDir
getDarkfield:
label: If 'true', will calculate darkfield image
doc: |-
If 'true', will calculate darkfield image
type: boolean?
inputBinding:
prefix: --getDarkfield
# photobleach:
# label: If 'true', will calculate photobleach scalar
# doc: |-
# If 'true', will calculate photobleach scalar
# type: boolean?
# inputBinding:
# prefix: --photobleach
filePattern:
label: File pattern to subset data
doc: |-
File pattern to subset data
type: string?
inputBinding:
prefix: --filePattern
groupBy:
label: Variables to group together
doc: |-
Variables to group together
type: string?
inputBinding:
prefix: --groupBy
preview:
label: Generate a JSON file describing what the outputs should be
doc: |-
Generate a JSON file describing what the outputs should be
type: boolean?
inputBinding:
prefix: --preview
outDir:
label: Output image collection
doc: |-
Output image collection
type: Directory
inputBinding:
prefix: --outDir
outputs:
outDir:
label: Output image collection
doc: |-
Output image collection
type: Directory
outputBinding:
glob: $(inputs.outDir.basename)
preview_json:
label: JSON file describing what the outputs should be
doc: |-
JSON file describing what the outputs should be
type: File? # if --preview
format: edam:format_3464
outputBinding:
glob: preview.json
$namespaces:
edam: https://edamontology.org/
cwltool: http://commonwl.org/cwltool#
$schemas:
- https://raw.githubusercontent.com/edamontology/edamontology/master/EDAM_dev.owl
# manifest: https://raw.githubusercontent.com/PolusAI/polus-plugins/master/regression/basic-flatfield-estimation-plugin/plugin.json