Skip to main content

MitoClass is a napari plugin for classifying mitochondrial morphology from microscopy images: it allows preprocessing data, predicting classes (connected, fragmented, intermediate), visualizing overlays and 3D summaries, and managing a prediction history.

Project description

MitoClass logo MitoClass

License: GPL v3 PyPI Python ≥ 3.10 napari‑hub

IMHORPHEN LARIS Université d'Angers


1  Overview

MitoClass is a napari plugin for the qualitative assessment of mitochondrial network morphology. Inference is patch‑wise: each 2‑D patch—obtained from a maximum‑intensity projection of 3‑D stacks—is classified as connected, fragmented, or intermediate.


2  Key features

Module Description
Patch‑based inference Analyse an image folder or the active napari layer.
RGBA heatmaps Overlay prediction maps as semi‑transparent layers in napari.
Global statistics Compute the proportion of pixels assigned to each morphology and identify the dominant class.
3‑D graph Interactive Plotly scatter plot of connected / fragmented / intermediate proportions per image.

3  Requirements

  • Python ≥ 3.10
  • OS : Windows, Linux or macOS
  • Hardware : CPU is sufficient; GPU (CUDA 11+) is recommended for large datasets

4  Installation

4.1  PyPI

pip install mitoclass

4.2  Reproducible conda environment

conda create -n mitoclass python=3.10
conda activate mitoclass

# (Optional) GPU acceleration
conda install -c conda-forge cudnn=8.9 cuda11.8 tensorflow

pip install mitoclass

Apple Silicon: install tensorflow-macos.

4.3  Pre‑trained model

Download the model (.h5) from <>


5  Usage

5.1  Graphical interface

napari
  1. Open Plugins → MitoClass.

  2. Select the four required paths:

    Field Purpose
    Input dir Folder of images to analyse (.tif, .tiff, .stk, .png).
    Output dir Destination folder for CSV and graph files.
    Heatmaps dir Folder where heatmaps (*_map.tif) will be written.
    Model file Pre‑trained Keras model (.h5).
  3. Click Run inference. A progress bar tracks the number of processed images.

  4. After completion:

    • Show heatmaps adds the newly generated *_map.tif layers to napari.
    • Show 3D graph opens graph3d.html, displaying the connected/fragmented/intermediate proportions.

Tip: Without an Input dir you may run Infer active layer; results are still saved to Output dir and Heatmaps dir.

5.2  Output structure

Folder File(s) Content
Output dir predictions.csv Pixel proportion for each class (connected, fragmented, intermediate) and the dominant morphology, one line per image.
graph3d.html Interactive 3‑D Plotly graph of class proportions.
Heatmaps dir *_map.tif One RGBA heatmap per image, ready to overlay in napari.

6  Licence

This project is released under the GNU GPL v3 licence. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mitoclass-1.0.3.tar.gz (54.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mitoclass-1.0.3-py3-none-any.whl (42.6 kB view details)

Uploaded Python 3

File details

Details for the file mitoclass-1.0.3.tar.gz.

File metadata

  • Download URL: mitoclass-1.0.3.tar.gz
  • Upload date:
  • Size: 54.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mitoclass-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ad2d5731832927024587cc75aaedee61600a6f4ef59f779c251bb41e3d3b96c6
MD5 c839adf71df6de4f3688e67fc94e8402
BLAKE2b-256 1d2b4f635be0ae7ad04e973dc2799893d47e099e375376f66d0c10a2fff1bec2

See more details on using hashes here.

File details

Details for the file mitoclass-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: mitoclass-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 42.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mitoclass-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f47e8152461295fb58a5ca2465694c2187cc21963a94b6b636defde2164c2924
MD5 2b5e131ae74c8d8d3e42220d0a32c5c3
BLAKE2b-256 af376bef8db6efff10b972041068a938ef26a7ca6c0e7a1d70f0f7b44655ba50

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page