Skip to main content

cuisto

Python Version PyPI Tests

Python package for histological quantification of objects in reference atlas regions.

cuisto uses data exported from QuPath used with ABBA to pool data and derive, average and display metrics.

Graphs generated with cuisto

Check the full documentation : https://teamncmc.github.io/cuisto

Install

Steps 1-3 below need to be performed only once. If Anaconda or conda is already installed, skip steps 1-2 and use the Anaconda prompt instead.

  1. Install Miniforge, as user, add conda to PATH and make it the default interpreter.
  2. Open a terminal (PowerShell in Windows). run : conda init and restart the terminal.
  3. Create a virtual environment named "cuisto-env" with Python 3.12 :
    conda create -n cuisto-env python=3.12
    
  4. Activate the environment :
    conda activate cuisto-env
    
  5. Install cuisto :
    pip install cuisto
    
  6. (Optional) Download the latest release from here (choose "Source code (zip)) and unzip it on your computer. You can copy the scripts/ folder to get access to the QuPath and Python scripts. You can check the notebooks in docs/demo_notebooks as well !

The cuisto package will be then available in Python from anywhere as long as the cuisto-env conda environment is activated. You can get started by looking and using the Jupyter notebooks.

For more detailed installation instructions, see the documentation.

Update

To update, simply activate your environment (conda activate cuisto-env) and run :

pip install cuisto --upgrade

Usage

See the Quick start section in the documentation.

Using notebooks

Some Jupyter notebooks are available in the docs/demo_notebooks folder. You can open them in an IDE (such as vscode with the Jupyter extension, select the "cuisto-env" environment as kernel in the top right) or in the Jupyter web interface (jupyter notebook in the terminal, with the "cuisto-env" environment activated).

Brain structures

You can generate brain structures outlines coordinates in three projections (coronal, sagittal, top-view) with the cuisto.atlas module (see usage example here). They are used to overlay brain regions outlines in 2D projection density maps. It requires a lot of RAM to generate them and might take a while. Those files have been pre-generated for some atlases, they are available in the separate brain-structures repository. They are automatically downloaded (if available) before plotting.

Build the doc

To build and look at the documentation offline : Download the repository, extract it and from the command line in the cuisto-main folder, run :

pip install .[doc]

Then, run :

mkdocs serve

Head to http://localhost:8000/ from a web browser. The documentation is built with MkDocs using the Material theme. KaTeX CSS and fonts are embedded instead of using a CDN, and are under a MIT license.

Contributing

See Contributing.

Credits

cuisto has been primarly developed by Guillaume Le Goc in Julien Bouvier's lab at NeuroPSI. The clever name was found by Aurélie Bodeau.

Metadata

Release files for cuisto 2025.6.17

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

Source distribution (sdist)

Source distribution for cuisto 2025.6.17
File Size Uploaded Provenance Actions
cuisto-2025.6.17.tar.gz 32.5 kB With provenance Details for cuisto-2025.6.17.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cuisto 2025.6.17
File Interpreter ABI Platform Actions
cuisto-2025.6.17-py3-none-any.whl Python 3 none any Details for cuisto-2025.6.17-py3-none-any.whl

Total release size: 68.0 kB

Release files / cuisto-2025.6.17.tar.gz

Download URL cuisto-2025.6.17.tar.gz
Size 32.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0b135c9137769c979965900b43bfedc97e0609c52e256495b301d447cc2de0ad
BLAKE2b-256 checksum
How to use checksums
7a7b6a66f6b1a25d636454aab9b2bee9f91b5b2017acd235b5fa32403f63f9b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 17, 2025.

Transparency log

Release files / cuisto-2025.6.17-py3-none-any.whl

Download URL cuisto-2025.6.17-py3-none-any.whl
Size 35.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5a9f5688c325c6f93bdd7e3bff8052dd37dd1778cba5d956092031097756424
BLAKE2b-256 checksum
How to use checksums
5198203696cd4563b9e456107c50698bfbab33c31d7df5e44eb37e85db3fee2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 17, 2025.

Transparency log

Security for cuisto 2025.6.17

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cuisto-2025.6.17.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 17, 2025.

Transparency log

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