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.2.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.2-py3-none-any.whl (77.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: partipy-0.0.2.tar.gz
  • Upload date:
  • Size: 12.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for partipy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5179bae20bdef03db107983d7ea8ff74ec73c5134f87dc0026bec7951d7bfd4a
MD5 95bc3a616e6e2025be292d8cdd75a1e0
BLAKE2b-256 b5f90831ec311cada50957016fcf736075f39508cb9975f7ed1e796a17b5b6ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: partipy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 77.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for partipy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ac26cd87bf570936ef4a037ef2ba3809d876c9f8d52ab0fe5c9193f86b52650
MD5 96f26360a75b1a5755f1dc272991b057
BLAKE2b-256 675aa4b4061ede3206712d0f0f5db8b00dcbbccb65204d74b8da34e360a28d44

See more details on using hashes here.

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