This EM MIP Mask Search plugin does bi-directional shape matching between your mask and the EM single neuron CDM dataset. For the shape matching, it requres "gradient files".
The algorithm created by Hideo Otsuna.
FIJI plugins created by Hideo Otsuna and Takashi Kawase.
- Launch and update FIJI.
- Drag and drop
EM_MIP_Search.jar
on FIJI. Then quit (the plugin installation).
(you can get the .jar file from here)
Download EM datdaset: (https://www.janelia.org/open-science/color-depth-mip)
• EM_Hemibrain_Ver1.2_CDM_PackBits_gradient.zip, The EM CDM has neuron name on their file name. It can search neuron by file browser. It also containeds gradient files for neuron shape matching.
• EM_Hemibrain1.2_SWC.zip: SWC files, open with VVDviewer.
Drag the EM_Hemibrain CDM folder (containing EM hemibrain color depth MIPs) into FIJI, use virtual stack option.
- Open a single CDM that containing the neuron; the CDM image needed to be aligned to JRC2018 unisex template space. (The newly aligned CDM also in https://www.janelia.org/open-science/color-depth-mip)
- Write ROI on the image (use polygon tool and try to be as accurate as possible).
- Edit > Clear Outside.
- If background is too high in the mask, increase the Threshold for mask (max value is 255).
- "ShowFlip hits on a same side" does X-filp of the image with hit by flipping, "Flip" mark will appear on the top center of the image.
- Pix Color Fluctuation, ±Z slice: better to be 1 for precise matchimng.
- The search can stop by pushing escape.
To make sure the position between the mask (the mask neuron) and hits (EM MIP), synchronizing the wingdows is useful function.
- Analyze > Tools > Synchronize Windows.
- Select the two windows to synchronize.
realtime_Result_ctrl_click_substack.ijm
is useful for quickly making a list of lines and the substack while scrolling through the stack of potential hits.
- Open
realtime_Result_ctrl_click_substack.ijm
. - Click window with colorMIP search result stacks.
- Run macro (only accepts one open window). Then Result window will be open.
- Shift + click on the result stack will add the image name into the Result table.
- ctrl + click will create a substack with the Result table from the result stack.
-
To create CDM from the swc files with the JRC2018 unisex template transferred, the CDM creation needs SWC_draw2.jar FIJI plugin.
-
Set up: Copy "PsychedelicRainBow2.lut" into /Fiji.app/luts/ folder.
Copy "swc_draw2.jar" & "Gradient_conv_multithread.jar" into /Fiji.app/plugins/ folder
Turn ON "Scijava Jupyter Kernel" in menu: /Help/Update.../Manage upodate sites/. Then restsart Fiji.
Run the swc_draw2 plugin;
1-A. Set the input folder that has all of the swc with JRC2018 unisex transferred.
1-B. Set CDM output directory.
1-C. Set parameters; JRC2018 Unisex brain; Width 1210, Height 566, Depth 174, Voxel W 0.5189161, Voxel H 0.5189161, Voxel D 1, Radius 2, Keep OFF ignore swc radius.
1-D. The output is PackBits tiff. This format is supported by “Color_MIP_Mask_Search.jar” and “EM_MIP_Mask_Search.jar”. -
Run the plugin "Gradient_conv_multithread.jar" for the creation of the gradient distance files for the negative shape matching score. The input folder is the EM-CDM files that you made in step 3.
-
If your CDM dataset is EM-hemibrain, copy the "MAX_hemi_to_JRC2018U_fineTune.png" image into the gradient folder.