Abstract
Motivation Trade-offs between different functions or tasks are pervasive across scales in biological systems. For example, individual cells cannot perform all possible functions simultaneously; instead they allocate limited resources to specialize in subsets of tasks by activating specific gene expression programs. Pareto Task Inference (ParTI) is a framework for analyzing biological trade-offs grounded in the theory of multi-objective optimality. However, existing software implementations of ParTI lack scalability to large datasets and do not integrate well with standard biological data analysis workflows, especially in the context of single-cell transcriptomics, limiting broader adoption.
Results
We have developed ParTIpy (Pareto Task Inference in Python), an open-source Python package that combines advances in optimization and coreset methods to scale archetypal analysis, the primary algorithm underlying ParTI, to large-scale datasets. By providing additional tools to characterize archetypes, comprehensive documentation, and adopting standard scverse data structures, ParTIpy facilitates seamless integration into existing analysis workflows and broadens accessibility, particularly within the single-cell community. We demonstrate how ParTIpy can be used to study intra-cell-type gene expression variability through the lens of task allocation, offering a principled alternative to methods that impose discrete cell state classifications on inherently continuous variation.
Availability and implementation ParTIpy’s open-source code is available on GitHub (https://github.com/saezlab/ParTIpy) and pypi (https://pypi.org/project/partipy). Documentation is available at https://partipy.readthedocs.io. The code to reproduce the results of this paper is on GitHub (https://github.com/saezlab/ParTIpy_paper)
Competing Interest Statement
JSR reports in the last 3 years funding from GSK and Pfizer and fees/honoraria from Travere Therapeutics, Stadapharm, Astex, Owkin, Pfizer, Grunenthal, Tempus and Moderna.
Footnotes
↵* These authors jointly supervised the work
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.