From 005655c760979b82b0cb73539698e1d6e7996d87 Mon Sep 17 00:00:00 2001
From: schlda00 <kai.schleicher@unibas.ch>
Date: Mon, 14 Apr 2025 17:16:07 +0200
Subject: [PATCH] Get path to ij roiset from GUI

---
 2d_spots_in_fibers.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/2d_spots_in_fibers.py b/2d_spots_in_fibers.py
index a5b54fe..08f87b6 100644
--- a/2d_spots_in_fibers.py
+++ b/2d_spots_in_fibers.py
@@ -2,7 +2,7 @@
 #@ CommandService command
 #@ File (label="select image", description="select your input image", style=file) path_to_image
 #@ Integer (label="select image file series", description="leave 1 if not needed", value=1, min=1, max=20, stepSize=1, persist=false, style=slider) series_number
-#@ Integer (label="Fiber Segmentation", description="select the Fiber Segmentation RoiSet .zip file") fiber_segmentation_roiset
+#@ File (label="Fiber Segmentation", description="select the Fiber Segmentation RoiSet .zip file", style=file) fiber_segmentation_roiset
 #@ Integer (label="DAPI channel", description="select the DAPI channel", min=1, max=20, stepSize=1, persist=true, style=slider) dapi_channel_number
 #@ Integer (label="DAPI threshold", description="0 = Auto", min=0) threshold
 #@ String (label="processing channels", description="comma separated list of channels, e.g. 2,3,6,7", value="1,2,3,4") processing_channels_string
@@ -748,6 +748,7 @@ def close_images(list_of_imps):
 
 
 path_to_image = str(path_to_image).replace("\\","/")
+fiber_segmentation_roiset = str(fiber_segmentation_roiset).replace("\\","/")
 parent_dir, filename, ext = get_parentdir_filename_ext_from_path(path_to_image)
 write_bf_memoryfile(path_to_image)
 n_channels, image_width, image_height, bit_depth = get_ome_metadata(path_to_image, series_number)
-- 
GitLab