Skip to main content

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 mamba, a faster version of conda which we recommend. Installation with conda is the exact same, except replace mamba with conda Run the following command:

mamba create -n napari-mm3 -c conda-forge conda-build tensorflow napari

Now, you need to install our code (please let us know if this causes problems -- it has been a pain point in the past). To do so, clone the repository:

git clone https://github.com/junlabucsd/napari-mm3.git

Then, run the following commands from within your conda environment:

cd napari-mm3
pip install -e .

This supplies you with the latest, most recent version of our code.

If you would like to have a more stable version, simply run pip install napari-mm3. In general, we recommend going off of the github version.

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 nd2reader package. In this case, Bio-Formats is not required.

NOTES: Not running the conda command above and trying to install things in a different way may lead to difficult issues with PyQt5. We recommend following the above commands to simplify the situation. Using pip -e . instead of mamba develop . is a deliberate choice, the former did not seem to register the plugin with napari.

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

  • 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.

b. Segmentation

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.

c. Tracking

  • Track -- Acquire individual cell properties and track lineages.

d. Fluorescence data analysis

  • 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.

e. Focus tracking

  • Foci -- We use this to track foci (bright fluorescent spots) inside of cells.

f. Extracting data and plotting

  • The notebook here demonstrates how to extract, filter and visualize the lineage data output by the Track widget.

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.

Metadata

Release files for napari-mm3 0.0.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for napari-mm3 0.0.16
File Size Uploaded Provenance
napari_mm3-0.0.16.tar.gz 19.9 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-mm3 0.0.16
File Interpreter ABI Platform
napari_mm3-0.0.16-py3-none-any.whl Python 3 none any Details

Total release size: 20.0 MB

Release files / napari_mm3-0.0.16.tar.gz

Download URL napari_mm3-0.0.16.tar.gz
Size 19.9 MB
Tags Source
SHA-256 checksum
How to use checksums
5d812bf403bfd65f4bfcd759e85e41cd77045ee7dd3e6698f7e6c3627b515ec7
BLAKE2b-256 checksum
How to use checksums
fe2682561058bf79cfe85db88dd1e1bf576abf7984a42b638666abc6b6a34aa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / napari_mm3-0.0.16-py3-none-any.whl

Download URL napari_mm3-0.0.16-py3-none-any.whl
Size 114.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20270b94cad96e44f14b41c40dac26fd4511c34d7355b19df8eb5f03346df22c
BLAKE2b-256 checksum
How to use checksums
cf8b9f9f3a43e6fc050633eb7a6db58988c061db04c5a84767e5d7644aaedfa4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for napari-mm3 0.0.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page