Pareto Task Inference in Python
Project description
ParTIpy: Pareto Task Inference in Python 
partipy (Pareto Task Inference in Python) provides a scalable and user-friendly implementation of the Pareto Task Inference (ParTI) framework (1, 2, 3, 4) for analyzing functional trade-offs in biological data, particularly in high-throughput single-cell and spatial omics data.
ParTI models gene expression variability within a cell type by capturing functional trade-offs - e.g., glycolysis vs. gluconeogenesis. The framework posits that cells lie along Pareto fronts, where improving one biological task inherently compromises another, forming a functional landscape represented as a polytope. Vertices of this polytope correspond to specialist cells optimized for distinct tasks, while generalists occupy interior regions balancing multiple functions.
To infer this structure, archetypal analysis models each cell as a convex combination of extremal points, called archetypes. These archetypes are constrained to lie within the convex hull of the data, ensuring interpretability and biological plausibility. In contrast to clustering methods that impose hard boundaries, archetypal analysis preserves the continuous nature of gene expression variability and reveals functional trade-offs without artificial discretization.
partipy integrates with the scverse ecosystem and employs coreset-based optimization for scalability to millions of cells.
Documentation
For detailed information and example tutorials, please refer to our documentation. Key resources include:
For a deeper dive into the mathematical foundations of archetypal analysis and the implementation of various initialization and optimization algorithms, see the methods section.
Installation
You need to have Python 3.10 or newer installed on your system.
There are several alternative options to install partipy:
- Install the latest stable release from PyPI with minimal dependencies:
pip install partipy
- Install the latest stable full release from PyPI with the extra dependencies (e.g.,
pybiomart,squidpy,liana) that are required to run every tutorial:
pip install partipy[extra]
- Install the latest development version:
pip install git+https://github.com/saezlab/partipy.git
Release Notes
See the changelog.
Questions & Issues
If you have any questions or issues, do not hesitate to open an issue.
Workflow Overview
Citation
@article{schafer2025partipy,
title = {ParTIpy: A Scalable Framework for Archetypal Analysis and Pareto Task Inference},
author = {Sch{\"a}fer, Philipp Sven Lars and Zimmermann, Leoni and Burmedi, Paul L. and Walfisch, Avia and Goldenberg, Noa and Yonassi, Shira and Shaer Tamar, Einat and Adler, Miri and Tanevski, Jovan and Ramirez Flores, Ricardo O. and Saez-Rodriguez, Julio},
journal = {bioRxiv},
year = {2025},
doi = {10.1101/2025.09.08.674797}
}
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
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 partipy-0.1.0.tar.gz.
File metadata
- Download URL: partipy-0.1.0.tar.gz
- Upload date:
- Size: 16.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f40c2c53d528cf11fd5a4ebdc2688f1c6edee67b0d1d3a65ca18be7d53dddf0c
|
|
| MD5 |
51c4d50dabf6bdf6f7384928488f2617
|
|
| BLAKE2b-256 |
5e40ad8132dbb3e566623f4d1155fa57d89a61b3bacdec699b4ba6436f2a4ef9
|
Provenance
The following attestation bundles were made for partipy-0.1.0.tar.gz:
Publisher:
release.yaml on saezlab/ParTIpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
partipy-0.1.0.tar.gz -
Subject digest:
f40c2c53d528cf11fd5a4ebdc2688f1c6edee67b0d1d3a65ca18be7d53dddf0c - Sigstore transparency entry: 885439587
- Sigstore integration time:
-
Permalink:
saezlab/ParTIpy@33bbb14155fd9a0252d7bd9821bc788300802943 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/saezlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@33bbb14155fd9a0252d7bd9821bc788300802943 -
Trigger Event:
release
-
Statement type:
File details
Details for the file partipy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: partipy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 93.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcc02f3b9391654af45a7e4ec31f2e2c5fe0f00d6a3b87f9a491f8eca61cbf21
|
|
| MD5 |
b1cf800e6332087f564d09687637b89f
|
|
| BLAKE2b-256 |
55286aa68fdc0f1556033af6c40b11443f12876b11acc30a753083ee0888cdb3
|
Provenance
The following attestation bundles were made for partipy-0.1.0-py3-none-any.whl:
Publisher:
release.yaml on saezlab/ParTIpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
partipy-0.1.0-py3-none-any.whl -
Subject digest:
bcc02f3b9391654af45a7e4ec31f2e2c5fe0f00d6a3b87f9a491f8eca61cbf21 - Sigstore transparency entry: 885439725
- Sigstore integration time:
-
Permalink:
saezlab/ParTIpy@33bbb14155fd9a0252d7bd9821bc788300802943 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/saezlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@33bbb14155fd9a0252d7bd9821bc788300802943 -
Trigger Event:
release
-
Statement type: