This is the Git repository for creating a Micro-manager plugin to run a custom python script for localizing and visualizing SMLM images
The plugin is developed in Netbeans 15 with Java 8 (as required my micro-manager) and tested on Micro-manager 2.0 stable and 2.0.3 (nightly) versions. Please follow the micro-manager guidelines for writing a plugin. We suggest using the Netbeans IDE.
The Python script is tested with Python 3.12.7. I would suggest you use Anaconda / Miniconda.
-
Install all the dependencies. Anaconda should have them by default, but please install them if something is unavailable.
-
Currently, the script (placed in
runLocalizer/script.py) is designed to localize the detected PSFs using a phasor based method, you can modify it according to your method of choice by redefining theprocess_imagefunction and editing themainfunction accordingly.
-
Open the project (
runLocalizer) in Netbeans, provide the location of the python code in the runLocalizer.java code, compile the plugin and copy the JAR file from thedistfolder to Micro-manager install folder > mmplugins. -
Start Micro-manager.
-
When you are ready to acquire images, start MDA and select save images > select 'separate image files'. Remember the saving location.
-
Once acquisition starts, go to Plugins > Acquisition tools > Run Python localizer script.
-
The results will be showing up as below:
Thank you,
Pranjal Choudhury February 2025


