Skip to content

Commit

Permalink
Use ome-converter-tool (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul authored Nov 8, 2024
1 parent a1348da commit 78384be
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
24 changes: 2 additions & 22 deletions cwl_adapters/ome-converter.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,13 @@ doc: |-

requirements:
DockerRequirement:
dockerPull: polusai/ome-converter-plugin:0.3.2-dev2
dockerPull: polusai/ome-converter-tool:0.3.3-dev4
# See https://www.commonwl.org/v1.0/CommandLineTool.html#InitialWorkDirRequirement
InitialWorkDirRequirement:
listing:
- entry: $(inputs.outDir)
writable: true # Output directories must be writable
InlineJavascriptRequirement: {}
# NOTE: polusai/ome-converter-plugin:0.3.1 uses the base image
# polusai/bfio:2.3.2 which now un-bundles the java maven package
# ome:formats-gpl:7.1.0 due to licensing reasons.
# To avoid requiring network access at runtime, in the bfio Dockerfile
# it is pre-installed and saved in ~/.m2/ However, by default
# CWL hides all environment variables (including HOME), so we need to
# set HOME here so that at runtime we get a cache hit on the maven install.
EnvVarRequirement:
# See https://www.commonwl.org/user_guide/topics/environment-variables.html
envDef:
HOME: /home/polusai

inputs:
inpDir:
Expand All @@ -46,15 +35,6 @@ inputs:
inputBinding:
prefix: --filePattern

fileExtension:
label: The file extension
doc: |-
The file extension
type: string
inputBinding:
prefix: --fileExtension
default: "default" # enum: .ome.tiff, .ome.zarr, default

outDir:
label: Output collection
doc: |-
Expand All @@ -78,4 +58,4 @@ $namespaces:
$schemas:
- https://raw.githubusercontent.com/edamontology/edamontology/master/EDAM_dev.owl

# manifest: https://raw.githubusercontent.com/PolusAI/polus-plugins/master/formats/ome-converter-plugin/plugin.json
# manifest: https://raw.githubusercontent.com/PolusAI/polus-plugins/master/formats/ome-converter-plugin/plugin.json
1 change: 0 additions & 1 deletion workflows/bbbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def workflow() -> Workflow:
omeconverter = Step(clt_path='../image-workflows/cwl_adapters/ome-converter.cwl')
omeconverter.inpDir = filerenaming.outDir
omeconverter.filePattern = '.*.tif'
omeconverter.fileExtension = '.ome.tif'
omeconverter.outDir = Path('omeconverter.outDir')

montage = Step(clt_path='../image-workflows/cwl_adapters/montage.cwl')
Expand Down
1 change: 0 additions & 1 deletion workflows/bbbc.wic
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ steps:
- outDir: !& file-renaming.outDir
ome-converter:
in:
fileExtension: !ii .ome.tif
filePattern: !ii .*.tif
inpDir: !* file-renaming.outDir
outDir: !ii omeconverter.outDir
Expand Down

0 comments on commit 78384be

Please sign in to comment.