Skip to content

Commit

Permalink
disabling use of group id as it affects multichannel analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
pr4deepr committed Nov 14, 2022
1 parent b24f995 commit b6ec05b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions _Analyse Neuron (Multi-channel).ijm
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down Expand Up @@ -704,21 +704,22 @@ 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
//display Hu and other channel as overlay; assign groups with different colours;
//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);
Expand Down

0 comments on commit b6ec05b

Please sign in to comment.