Skip to main content

Pareto Task Inference in Python

Project description

ParTIpy: Pareto Task Inference in Python

codecov Documentation Status GitHub issues pre-commit.ci status

partipy provides a scalable and user-friendly implementation of the Pareto Task Inference (ParTI) framework [1,2] for analyzing functional trade-offs in 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 (AA) 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, AA preserves the continuous nature of gene expression variability and reveals functional trade-offs without artificial discretization.

partipy integrates with the scverse ecosystem, supports AnnData, and employs coreset-based optimization for scalability to millions of cells.

[1] Hart et al., Nat Methods (2015). https://doi.org/10.1038/nmeth.3254

[2] Adler et al., Cell Systems (2019). https://doi.org/10.1016/j.cels.2018.12.008

Documentation

For further information and example tutorials, please check our documentation.

Installation

Since partipy is still in the beta stage and updated frequently, we recommend installing it directly from GitHub:

pip install git+https://github.com/saezlab/partipy.git

Alternatively, partipy can be installed from PyPI:

pip install partipy

Questions & Issues

If you have any questions or issues, do not hesitate to open an issue.

Citation

TBD

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

partipy-0.0.4.tar.gz (12.6 MB view details)

Uploaded Source

Built Distribution

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

partipy-0.0.4-py3-none-any.whl (77.7 kB view details)

Uploaded Python 3

File details

Details for the file partipy-0.0.4.tar.gz.

File metadata

  • Download URL: partipy-0.0.4.tar.gz
  • Upload date:
  • Size: 12.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for partipy-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6a6eed03097a74eab124efb7521637161762a981c0751aa0dd2bb5ffa0377246
MD5 3875ccf51dad2a9b92fce10b625238c6
BLAKE2b-256 bb6740667e1978e944051f2c8f87b789500c99e692ee47e8038f4b3458fd5254

See more details on using hashes here.

Provenance

The following attestation bundles were made for partipy-0.0.4.tar.gz:

Publisher: release.yaml on saezlab/ParTIpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file partipy-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: partipy-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 77.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for partipy-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f7ab0ae3f89fc484cc5f45f1815b29e88bf42633f5be69533e6ea6fb823e77ec
MD5 68de471b9e2d05f10c88b30d21f88805
BLAKE2b-256 f6fd81a7570b3549e470605f8f8e7bb9a07a72f75a76aa2067be25fe6b79c9ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for partipy-0.0.4-py3-none-any.whl:

Publisher: release.yaml on saezlab/ParTIpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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