Skip to main content

Pareto Task Inference in Python

Project description

ParTIpy: Pareto Task Inference in Python

codecov Documentation Status GitHub issues

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

While partipy is under active development, it can currently be installed from GitHub via:

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

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.1.tar.gz (6.9 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.1-py3-none-any.whl (60.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: partipy-0.0.1.tar.gz
  • Upload date:
  • Size: 6.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for partipy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bf7a155c2b1b807a37c91daed7a2d29ed0398ec487dad3852a46438cc2c80a16
MD5 076333c03d18b4cbe8010f3a74af2774
BLAKE2b-256 67372b69c0d547533274633c296cc365e2c19c0f0e12f583ab6ca8b1dcdbe349

See more details on using hashes here.

File details

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

File metadata

  • Download URL: partipy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 60.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for partipy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50c7d0462ad627595e989b9d194231ac07428e1e127fe22df32ca60659fbde45
MD5 a48f3f11b45b83feadcc8375df241344
BLAKE2b-256 c78855a0e1901af1444751fc23da8bc182871349ee7ed835533057f74e9f118a

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