From b6ec05b7861e99f100d94d1f2a1bc79453c98951 Mon Sep 17 00:00:00 2001 From: Pradeep R Date: Tue, 15 Nov 2022 04:05:41 +1100 Subject: [PATCH] disabling use of group id as it affects multichannel analysis --- _Analyse Neuron (Multi-channel).ijm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/_Analyse Neuron (Multi-channel).ijm b/_Analyse Neuron (Multi-channel).ijm index 98b4be3..25b3fa4 100644 --- a/_Analyse Neuron (Multi-channel).ijm +++ b/_Analyse Neuron (Multi-channel).ijm @@ -483,11 +483,11 @@ run("Select None"); print("No of "+cell_type+" in "+max_projection+" : "+cell_count); //select all rois in roi manager -selection_indexes = Array.getSequence(roiManager("count")); -roiManager("select", selection_indexes); -group_id = 1; -set_all_rois_group_id(group_id); -roiManager("deselect"); +//selection_indexes = Array.getSequence(roiManager("count")); +///roiManager("select", selection_indexes); +//group_id = 1; +//set_all_rois_group_id(group_id); +//roiManager("deselect"); roi_location=results_dir+cell_type+"_ROIs_"+file_name+".zip"; roiManager("save",roi_location ); @@ -704,12 +704,13 @@ if(marker_subtype==1) //selectWindow(temp_label); selectWindow(temp_label); run("Select None"); + waitForUser; runMacro(label_to_roi,temp_label); close(temp_label); close("label_img_temp"); wait(5); selectWindow(max_projection); - //roiManager("deselect"); + roiManager("deselect"); roiManager("show all"); //selectWindow(max_projection); //add option to draw ROI on channel name OR @@ -717,8 +718,8 @@ if(marker_subtype==1) //get user to click waitForUser("Verify ROIs for "+channel_name+". Delete or add ROIs as needed. Press OK when done."); - group_id+=1; - set_all_rois_group_id(group_id); + //group_id+=1; + //set_all_rois_group_id(group_id); roiManager("deselect"); //convert roi manager to label image runMacro(roi_to_label);