MCPcopy Index your code
hub / github.com/MannLabs/scPortrait

github.com/MannLabs/scPortrait @v1.8.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.8.0 ↗ · + Follow
1,050 symbols 3,616 edges 111 files 524 documented · 50%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

GitHub Release Versions License Docs Unit Tests E2E Tests pre-commit.ci status PyPI version PyPI Downloads

graphical_abstract

scPortrait is a scalable toolkit to generate single-cell representations from raw microscopy images.

Getting started

Please refer to our documentation, in particular:

Installation from Github

Check out the docs for complete installation instructions. scPortrait currently supports Python 3.11, 3.12, 3.13 and 3.14.

To get started you can install scPortrait via pip:

pip install scportrait

Limitations

Currently the scPortrait framework is being developed using Linux and macOS, and only provides limited Windows support. Please refer to this GitHub issue for more information.

Citing our Work

scPortrait was created by Sophia Mädler, Niklas Schmacke and Georg Wallmann in the labs of Matthias Mann, Veit Hornung and Fabian Theis in 2024 and is actively being developed. If you are interested in contributing please reach out to the developers.

If you use our code please cite this manuscript:

scPortrait integrates single-cell images into multimodal modeling. Sophia Clara Mädler, Niklas Arndt Schmacke, Alessandro Palma, Altana Namsaraeva, Ali Oğuz Can, Varvara Varlamova, Lukas Heumos, Mahima Arunkumar, Georg Wallmann, Veit Hornung, Fabian J. Theis, Matthias Mann

https://www.biorxiv.org/content/10.1101/2025.09.22.677590v1

Contributing

If you like this software, consider giving us a star to boost our visibility! For detailed guidelines on how to contribute, please refer to our contributing guide.

We welcome all types of contributions! You can:

  • Post a new issue if you encounter a bug or have a feature request.
  • Clone the repository, create a new branch, and submit a pull request.
  • Join the conversation in our discussions for more interactive participation.

Core symbols most depended-on inside this repo

log
called by 328
src/scportrait/pipeline/_base.py
close
called by 35
src/scportrait/tools/ml/datasets.py
_clear_cache
called by 35
src/scportrait/pipeline/_base.py
normalize_path
called by 24
src/scportrait/_utils/paths.py
parse
called by 21
src/scportrait/tools/parse/_parse_phenix.py
get_project_status
called by 18
src/scportrait/pipeline/project.py
_get_remote_dataset
called by 16
src/scportrait/data/_datasets.py
read
called by 15
src/scportrait/tools/stitch/_utils/filereaders.py

Shape

Method 594
Function 357
Class 90
Route 9

Languages

Python100%

Modules by API surface

src/scportrait/pipeline/featurization.py66 symbols
src/scportrait/tools/ml/models.py47 symbols
src/scportrait/pipeline/project.py46 symbols
src/scportrait/pipeline/segmentation/workflows/_cellpose.py45 symbols
src/scportrait/tools/ml/plmodels.py44 symbols
src/scportrait/pipeline/extraction.py44 symbols
src/scportrait/pipeline/segmentation/segmentation.py39 symbols
src/scportrait/tools/ml/datasets.py38 symbols
src/scportrait/tools/stitch/_stitch.py36 symbols
src/scportrait/tools/parse/_parse_phenix.py31 symbols
src/scportrait/processing/masks/mask_filtering.py31 symbols
tests/unit_tests/tools/ml/test_datasets.py24 symbols

For agents

$ claude mcp add scPortrait \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page