Quantification of objects in histological slices
Project description
cuisto
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.
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.
- Install Miniforge, as user, add conda to PATH and make it the default interpreter.
- Open a terminal (PowerShell in Windows). run :
conda initand restart the terminal. - Create a virtual environment named "cuisto-env" with Python 3.12 :
conda create -n cuisto-env python=3.12
- Activate the environment :
conda activate cuisto-env
- Install
cuisto:pip install cuisto
- (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 indocs/demo_notebooksas well !
The cuisto 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 complete installation instructions, see the documentation.
Update
To update, simply activate your environment (conda activate cuisto-env) and run :
pip install cuisto --upgrade
Using notebooks
Some Jupyter notebooks are available in the "docs/demo_notebooks" folder. You can open them in an IDE (such as vscode, 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 script in scripts/atlas/generate_atlas_outline.py. They are used to overlay brain regions outlines in 2D projection density maps. It might take a while so you can also grab a copy of those files here:
- allen mouse 10µm : https://arcus.neuropsi.cnrs.fr/s/TYX95k4QsBSbxD5
- allen cord 20um : https://arcus.neuropsi.cnrs.fr/s/EoAfMkESzJZG74Q
Build the doc
To build and look at the documentation offline :
In step 5. above, replace the pip install . command with :
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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cuisto-2025.1.9.tar.gz.
File metadata
- Download URL: cuisto-2025.1.9.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed3db18d6c07e700be0149b71ce8f45c31bd0bb9927f829f85b37341fc1d0139
|
|
| MD5 |
f95365601a42934b95830dc84badaa2e
|
|
| BLAKE2b-256 |
23590c004f58b994edff6e6b2597dcc2a4583525f734bc50a55d59ec932ae66b
|
Provenance
The following attestation bundles were made for cuisto-2025.1.9.tar.gz:
Publisher:
python-publish.yml on TeamNCMC/cuisto
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cuisto-2025.1.9.tar.gz -
Subject digest:
ed3db18d6c07e700be0149b71ce8f45c31bd0bb9927f829f85b37341fc1d0139 - Sigstore transparency entry: 161039742
- Sigstore integration time:
-
Permalink:
TeamNCMC/cuisto@6b571c5ff1e86e16facd08f248c5c0e5085b942a -
Branch / Tag:
refs/tags/v2025.1.9 - Owner: https://github.com/TeamNCMC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6b571c5ff1e86e16facd08f248c5c0e5085b942a -
Trigger Event:
release
-
Statement type:
File details
Details for the file cuisto-2025.1.9-py3-none-any.whl.
File metadata
- Download URL: cuisto-2025.1.9-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
980eed067abb4ed81eed3191929d45bf01c602c7822dec90411f5aa61c141cff
|
|
| MD5 |
c9c62a8d20a782c501ca5e542efccb28
|
|
| BLAKE2b-256 |
51a845709ce47c205e2e91ec9ad5271fb514140e7e2ce130092c4ade9206df1d
|
Provenance
The following attestation bundles were made for cuisto-2025.1.9-py3-none-any.whl:
Publisher:
python-publish.yml on TeamNCMC/cuisto
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cuisto-2025.1.9-py3-none-any.whl -
Subject digest:
980eed067abb4ed81eed3191929d45bf01c602c7822dec90411f5aa61c141cff - Sigstore transparency entry: 161039745
- Sigstore integration time:
-
Permalink:
TeamNCMC/cuisto@6b571c5ff1e86e16facd08f248c5c0e5085b942a -
Branch / Tag:
refs/tags/v2025.1.9 - Owner: https://github.com/TeamNCMC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6b571c5ff1e86e16facd08f248c5c0e5085b942a -
Trigger Event:
release
-
Statement type: