A plugin for mother machine image analysis by the Jun Lab.
This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.
https://github.com/junlabucsd/napari-mm3/assets/40699438/1b3e6121-f5e1-475f-aca3-c6ed1b5bab3a
We describe installation with conda. First, clone with git and navigate inside the folder.
git clone git@github.com:junlabucsd/napari-mm3.git
cd napari-mm3
If you do not have ssh configured, you can replace the URL with https://github.com/junlabucsd/napari-mm3.git
; we recommend setting up SSH.
Now, install dependencies (this step can take a while):
conda env create -f environment.yml
By default, 'napari-mm3' will be the environment name. Finally, switch to the environment you've created, and install the plugin itself WITHOUT dependencies (if you miss the flag, you will likely run into trouble!!):
conda activate napari-mm3
pip install -e . --no-dependencies
This supplies you with the latest, most recent version of our code.
napari-MM3 can use the python-bioformats library to import various image file formats. It can be installed with pip:
pip install python-bioformats
If your raw images are in the .nd2 format, they will be read in with the nd2 package. In this case, Bio-Formats is not required.
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
https://github.com/junlabucsd/napari-mm3/assets/8302475/68c726be-620e-4375-b1c9-3db56ac9a82a
Additional reference information is available below.
TIFFConverter -- Turn your nd2 microscopy data, or other format via bioformats, into TIFFs. If your data is already exported as individual TIFF files, skip to the Compile widget. Take note of the input image guidelines.
Compile -- Locate traps, separate their timelapses into their own TIFFs, and return metadata.
PickChannels -- User guided selection of empty and full traps.
With Otsu's method:
Subtract -- Remove (via subtraction) empty traps from the background of traps that contain cells; run this on the phase contrast channel.
SegmentOtsu -- Use Otsu's method to segment cells.
With U-Net:
Annotate -- annotate images for ML (U-Net or similar) training purposes.
Train U-Net -- Train a U-Net model for cell segmentation.
SegmentUnet -- Run U-Net segmentation.
Subtract -- Remove (via subtraction) empty traps from the background of traps that contain cells. This time, run this on your fluorescence channels.
Colors -- Calculate fluorescence information.
foci
(bright fluorescent spots) inside of cells.Finally, to better understand the data formats, you may wish to refer to the following documents:
Distributed under the terms of the BSD-3 license, "napari-mm3" is free and open source software
If you encounter any problems, please file an issue along with a detailed description.