1. Drag and drop the Script A macro into ImageJ/Fiji (or run via Plugins → Macros → Run…)
2. Select the multi-series .czi file when prompted
3. Select an output folder when prompted
4. The macro automatically exports each embedded image dataset as a separate OME-TIFF file like this: ‘Series cindexe_AllChannels.ome.tiff’
No additional parameters need to be set or modified
6. Drag and drop the Script B macro into ImageJ/Fiji (or run via Plugins → Macros → Run…)
7. Select the folder containing the per-dataset OME-TIFF stacks (these are the output files generated by Script A)
8. For each input stack, the macro automatically creates a subfolder named after the input file (excluding the file extension) [Series_cindexe_AllChannels]
9. Each dataset is processed independently as follows:
a. The image is opened as a hyperstack
b. The Z-stack is processed in consecutive groups of three slices
c. For each set of three slices, a maximum-intensity projection (MIP) is generated for each user-defined channel
10. Projected images are saved as 2D TIFF files using the naming convention: ‘MIP_cstartSlicee_cchannelNamee.tif’, where cstartSlicee indicates the first slice of the three-slice group.
**Line 48-51**: which channels are exported and what they are named.
- `saveChannelMIP(1, "DARFF32");`
- `saveChannelMIP(2, "pSNCA");`
- `saveChannelMIP(3, "DAPI");`
- `saveChannelMIP(4, "CHAT");`
- Replace the channel index (first argument) to match your acquisition order
- Replace the channel name (second argument) to match the label you want in the output filename
Example: To change to “DAPI and GFP”, replace the code above with this:
- `saveChannelMIP(1, "DAPI");`
- `saveChannelMIP(2, "GFP");`
**Line 39: Projection Type**
This code is currently for maximum intensity projection on Z-stacks. This can be changed to
- Average intensity (projection=[Average Intensity]) or
- sumslices (projection=[Sum Slices])
**Line 25 - 29: Number of Z-slices per projection**
Three-slice grouping is controlled by the Z-loop step size and the stop calculation.
- For example, for 5-slice projections (rather than 3):
- change z += 3 to z += 5 (line 25)
- and stop = z + 2 to stop = z + 4 (line 28).