Differential abundance and gene expression analysis using Mahalanobis distance with JAX backend
Project description
Kompot
Kompot is a Python package for differential abundance and gene expression analysis using Gaussian Process models with JAX backend.
Overview
Kompot implements methodologies from the Mellon package for computing differential abundance and gene expression, with a focus on using Mahalanobis distance as a measure of differential expression significance. It leverages JAX for efficient computations and provides a scikit-learn like API with .fit() and .predict() methods.
Key features:
- Computation of differential abundance between conditions
- Gene expression imputation and uncertainty estimation
- Mahalanobis distance calculation for differential expression significance
- Weighted log fold change analysis with density difference weighting
- Support for covariance matrices and optional landmarks
- JAX-accelerated computations
- Empirical variance estimation
- Disk-backed storage for large datasets with Dask support
- Full scverse compatibility with direct AnnData integration
- Visualization tools for differential expression, abundance results, and customizable embedding plots
Installation
pip install kompot
For using the default diffusion map cell state representation:
pip install palantir
For additional plotting functionality with scanpy integration:
pip install kompot[plot]
For disk-backed storage with Dask support (recommended for large datasets):
pip install kompot[dask]
To install all optional dependencies:
pip install kompot[all]
JAX Installation
Kompot depends on JAX for efficient computations. By default, the CPU version of JAX is used, which is recommended for most users as it provides good performance without memory constraints.
See JAX GitHub for more installation details.
Usage Example
See the Tutorial Notebooks and documentation.
License
GNU General Public License v3 (GPLv3)
Project details
Release history Release notifications | RSS feed
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 kompot-0.5.2.tar.gz.
File metadata
- Download URL: kompot-0.5.2.tar.gz
- Upload date:
- Size: 217.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38e5c7fafae83a56c9fb87e8642fe317bb7c18f0a418f6c7a6d6e8b7cfc13cb1
|
|
| MD5 |
9e677252b524ed66fb1757d35e60fc03
|
|
| BLAKE2b-256 |
ec34cb14ebed0bcbb96b9d3361e12f1070f4e1271081ed0677e7552189b31d16
|
File details
Details for the file kompot-0.5.2-py3-none-any.whl.
File metadata
- Download URL: kompot-0.5.2-py3-none-any.whl
- Upload date:
- Size: 235.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35b65fdcb7dc7eaf9ff09eaa900f1055afc5c36b4e14b47516c1bc79639eb94c
|
|
| MD5 |
54992103a76b88ca8a3e734dcd8a34d6
|
|
| BLAKE2b-256 |
77c3834de8f5b0c9b0f514bc4fdc0885c51ec31fb58522003489a154a082bd21
|