Skip to main content

Software for isolating and analyzing microglial morphology.

Project description

Pycroglia Banner

Pycroglia

A Python-based toolkit for quantitative 3D microglia morphology analysis

Pycroglia is a modern, open-source port of CellSelect-3DMorph, a MATLAB-based tool originally designed to isolate and analyze cell morphology from 3D fluorescence microscopy images. By reconstructing individual cells voxel by voxel, Pycroglia enables researchers to extract quantitative morphological descriptors such as cell volume, territorial volume, ramification index, branch length, number of branches, and endpoints, among others. It builds upon the logic of the original MATLAB scripts but introduces a robust and extensible Python architecture, supporting both GUI and library modes for interactive and automated workflows.


Installation and Usage

Pycroglia is available on PyPI and can be installed or executed using uv or the standard pip tool.

Prerequisites

  • uv (Recommended):
  • Python 3.10 or later

Option 1 — Install with pip

You can install Pycroglia using pip directly from PyPI:

pip install pycroglia

and to run it

pycroglia

Option 2 — Install with uv

If you prefer to use uv, which provides faster and isolated package management:

uv pip install pycroglia

and to run it

pycroglia

Option 3 — Run directly (recommended)

You can run Pycroglia without installing it globally, using uvx:

uvx pycroglia

This automatically downloads and runs the latest released version from PyPI in an isolated environment.

You can also specify a particular version:

uvx pycroglia==0.0.2

Option 4 — From source

If you cloned the repository and want to run it locally:

git clone https://github.com/CGK-Laboratory/pycroglia/pycroglia.git
cd pycroglia
uv run main.py

and for running the test suite

uv run pytest

Use Pycroglia from a Jupyter Notebook

If you want to work within a Jupyter Notebook, launch a notebook server connected to the project’s virtual environment:

uv run --with jupyter jupyter lab

Contributing

If you are interested in contributing to the project follow the following guidelines CONTRIBUTING

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

pycroglia-0.0.5.tar.gz (126.0 kB view details)

Uploaded Source

Built Distribution

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

pycroglia-0.0.5-py3-none-any.whl (184.6 kB view details)

Uploaded Python 3

File details

Details for the file pycroglia-0.0.5.tar.gz.

File metadata

  • Download URL: pycroglia-0.0.5.tar.gz
  • Upload date:
  • Size: 126.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pycroglia-0.0.5.tar.gz
Algorithm Hash digest
SHA256 49d05af2bff4ac9a6367b2cf0ff4588f511b09d672e17da005e052dd39f24950
MD5 ba2fa098b22c7ecb6fd09712df587eb1
BLAKE2b-256 d4d79a3237e180640ce2b31309a346236233bdff8f337b654d3929b737e0143a

See more details on using hashes here.

File details

Details for the file pycroglia-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pycroglia-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 184.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pycroglia-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3bf99b17131530086c7610f4a648d189f0e3270d7ff39709baf1a007632479d5
MD5 7ea50b54b1c2ae5a5ae922c6b6a1634c
BLAKE2b-256 450875659635b06170a66da629f4d558529b6065d89964c02cf679942df435ab

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