junlabucsd / napari-mm3

Mother machine image analysis through napari
BSD 3-Clause "New" or "Revised" License
8 stars 4 forks source link
biomedical-image-processing deep-learning napari napari-plugin otsu-thresholding python unet-image-segmentation

napari-mm3

License PyPI Python Version tests napari hub

A plugin for mother machine image analysis by the Jun Lab.

Reference: Tools and methods for high-throughput single-cell imaging with the mother machine. Ryan Thiermann, Michael Sandler, Gursharan Ahir, John T. Sauls, Jeremy W. Schroeder, Steven D. Brown, Guillaume Le Treut, Fangwei Si, Dongyang Li, Jue D. Wang, Suckjoon Jun. eLife12:RP88463 https://doi.org/10.7554/eLife.88463.1


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

Installation

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.

Contributing

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.

Usage guide

https://github.com/junlabucsd/napari-mm3/assets/8302475/68c726be-620e-4375-b1c9-3db56ac9a82a

Additional reference information is available below.

a. Preprocessing

b. Segmentation

With Otsu's method:

With U-Net:

c. Tracking

d. Fluorescence data analysis

e. Focus tracking

f. Extracting data and plotting

g. Outputs, inputs, and file structure

Finally, to better understand the data formats, you may wish to refer to the following documents:

License

Distributed under the terms of the BSD-3 license, "napari-mm3" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.