diff --git a/2d_spots_in_fibers.py b/2d_spots_in_fibers.py index 34332f15ac9a4afeb4c6ad9d153e0cdf1c135d3c..4e0a81636e3d9dec4e242499d9a2948488d06244 100644 --- a/2d_spots_in_fibers.py +++ b/2d_spots_in_fibers.py @@ -456,12 +456,12 @@ for index, channel in enumerate(processing_channels): quality_threshold = float(quality_thresholds[index]) spots_channel = BFopen_image(path_to_image, channel, series_number) spots_label_imp = run_trackmate_dog_spot_detector(spots_channel, spot_diameter, quality_threshold) - save_labelimage_as_ijroiset(spots_label_imp, filename, "spots_ch" + str(channel), parent_dir) + save_labelimage_as_ijroiset(spots_label_imp, rm, filename, "spots_ch" + str(channel), parent_dir) spots_binary_imp = convert_labelimage_to_binary(spots_label_imp) dapi_positive_spots_binary = ImageCalculator.run(spots_binary_imp, dapi_binary, "Multiply create") dapi_negative_spots_binary = ImageCalculator.run(spots_binary_imp, dapi_positive_spots_binary, "Subtract create") - load_rois_from_zip(fiber_segmentation_roiset) + load_rois_from_zip(fiber_segmentation_roiset, rm) fiber_label_IDs, n_spots_per_fiber = measure_intensity_sum(spots_binary_imp, rm) _, n_dapi_positive_spots_per_fiber = measure_intensity_sum(dapi_positive_spots_binary, rm) _, n_dapi_negative_spots_per_fiber = measure_intensity_sum(dapi_negative_spots_binary, rm)