Skip to main content

Differential abundance and gene expression analysis using Mahalanobis distance with JAX backend

Project description

Kompot

DOI PyPI Tests codecov Documentation Status

Kompot Logo

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
  • JAX-accelerated computations with optional GPU support
  • Disk-backed storage for large datasets with dask support
  • Full scverse compatibility with direct AnnData integration
  • Visualization tools for volcano plots, heatmaps, and embeddings
  • Command-line interface for pipeline integration

Installation

pip install kompot

Or via conda:

conda install -c bioconda kompot

See the installation guide for optional dependencies and JAX GPU support.

Usage

Python API

import kompot
import anndata as ad

# Load data
adata = ad.read_h5ad("data.h5ad")

# Differential expression
kompot.compute_differential_expression(
    adata,
    groupby="condition",
    condition1="control",
    condition2="treatment",
    obsm_key="X_pca"
)

Command-Line Interface

# Differential expression
kompot de input.h5ad -o output.h5ad \
  --groupby condition \
  --condition1 control \
  --condition2 treatment

Documentation

License

GNU General Public License v3 (GPLv3)

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

kompot-0.6.0.tar.gz (288.1 kB view details)

Uploaded Source

Built Distribution

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

kompot-0.6.0-py3-none-any.whl (464.3 kB view details)

Uploaded Python 3

File details

Details for the file kompot-0.6.0.tar.gz.

File metadata

  • Download URL: kompot-0.6.0.tar.gz
  • Upload date:
  • Size: 288.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for kompot-0.6.0.tar.gz
Algorithm Hash digest
SHA256 2ce2d99f48352fb931a9469614d2b881bf37370f5482cf64fc4f636ed3c6a8c1
MD5 89cca749bbc571b6710029ec1cd3dfb3
BLAKE2b-256 2feecea9b690d3c171ea39649e30f217f603413a38be07eaa79ce82675ea9894

See more details on using hashes here.

File details

Details for the file kompot-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: kompot-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 464.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for kompot-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33c1e538382fa1f34dffd31a2f4bd8b4cd25a169c7eaa220889b77df0971bcdf
MD5 b70b9312ccaca84c0d8f91e0d3846a76
BLAKE2b-256 89b32ac8aa1836d385c0f416852045241ab1bb5265d71e6a5620b2397c9db4c2

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