Skip to content

Commit

Permalink
fix: run-plugin script
Browse files Browse the repository at this point in the history
  • Loading branch information
nishaq503 committed Aug 2, 2023
1 parent 6cd4d99 commit e14fbe7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions transforms/images/apply-flatfield-plugin/run-plugin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

version=$(<VERSION)
datapath=$(readlink --canonicalize ./data)
echo ${datapath}

# Inputs
imgDir="/data/images"
imgPattern="p{p:d+}_x{x:d+}_y{y:d+}_wx{r:d+}_wy{z:d+}_c{c:d+}.ome.tif"
ffDir="/data/estimation"
brightPattern="p{p:d+}_x\\(01-24\\)_y\\(01-16\\)_wx\\(1-3\\)_wy\\(1-3\\)_c{c:d+}_flatfield.ome.tif"
darkPattern="p{p:d+}_x\\(01-24\\)_y\(01-16\\)_wx\\(1-3\\)_wy\\(1-3\\)_c{c:d+}_darkfield.ome.tif"
# photoPattern=""

# Output paths
outDir=/data/outputs

FILE_EXT=".ome.zarr"

docker run --mount type=bind,source=${datapath},target=/data/ \
-e POLUS_EXT=${FILE_EXT} \
--user $(id -u):$(id -g) \
polusai/apply-flatfield-plugin:${version} \
--imgDir ${imgDir} \
--imgPattern ${imgPattern} \
--ffDir ${ffDir} \
--brightPattern ${brightPattern} \
--darkPattern ${darkPattern} \
--outDir ${outDir}

0 comments on commit e14fbe7

Please sign in to comment.