Skip to main content

causarray is a Python module for simultaneous causal inference with an array of outcomes.

Project description

Documentation Status PyPI PyPI-Downloads

causarray

Advances in single-cell sequencing and CRISPR technologies have enabled detailed case-control comparisons and experimental perturbations at single-cell resolution. However, uncovering causal relationships in observational genomic data remains challenging due to selection bias and inadequate adjustment for unmeasured confounders, particularly in heterogeneous datasets. To address these challenges, we introduce causarray [Du25], a doubly robust causal inference framework for analyzing array-based genomic data at both bulk-cell and single-cell levels. causarray integrates a generalized confounder adjustment method to account for unmeasured confounders and employs semiparametric inference with flexible machine learning techniques to ensure robust statistical estimation of treatment effects.

Usage

We recommend using causarray in a conda environment:

# create a new conda environment and install the necessary packages
conda create -n causarray python=3.12 -y

# activate the environment
conda activate causarray

The module can be installed via PyPI:

pip install causarray

For R users, reticulate can be used to call causarray from R. The documentation and tutorials using both Python and R are available at causarray.readthedocs.io.

Logs

  • (2025-01-30) Python package released on PyPI
  • (2025-02-01) code for reproducing figures in paper
  • (2025-02-02) Tutorial for Python and R
  • Documentation

References

[Du25] Jin-Hong Du, Maya Shen, Hansruedi Mathys, and Kathryn Roeder (2025). Causal differential expression analysis under unmeasured confounders with causarray. bioRxiv, 2025-01.

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

causarray-0.0.3.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

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

causarray-0.0.3-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file causarray-0.0.3.tar.gz.

File metadata

  • Download URL: causarray-0.0.3.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for causarray-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4a9811dfb0f6b64e1c2d06087ba8a9c8e60602cbed5741f6ac0275bf32eae3d4
MD5 d92baa8d7973b91c3c70e46074e0dc2d
BLAKE2b-256 9b9accaafc2d6ac3849695d6703cf15d2f89dc20d620b364804b5ec9187a897e

See more details on using hashes here.

Provenance

The following attestation bundles were made for causarray-0.0.3.tar.gz:

Publisher: publish-to-pypi.yml on jaydu1/causarray

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file causarray-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: causarray-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for causarray-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 62d3de4f1c51b4b765e9ca1fbbf161afba3d559b1fbe838f42bafc6109f953dd
MD5 625031a53b3e31dd9253b426e16b62a7
BLAKE2b-256 deee89f74eb4987fa541f54356feaa1ed7a832e945a744e55b101a641a56587f

See more details on using hashes here.

Provenance

The following attestation bundles were made for causarray-0.0.3-py3-none-any.whl:

Publisher: publish-to-pypi.yml on jaydu1/causarray

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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