causarray is a Python module for simultaneous causal inference with an array of outcomes.
Project description
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
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 causarray-0.0.5.tar.gz.
File metadata
- Download URL: causarray-0.0.5.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bb81565a4e7f0b9ec9e9f3d912a841633ad99587b79c08d290757cde054c05a
|
|
| MD5 |
4efbb00fc117b02843337dfa9cf00c10
|
|
| BLAKE2b-256 |
e12efea9bd792fee869a652fe67b18d09a568642a0aa024189a517effb8cdd14
|
Provenance
The following attestation bundles were made for causarray-0.0.5.tar.gz:
Publisher:
publish-to-pypi.yml on jaydu1/causarray
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
causarray-0.0.5.tar.gz -
Subject digest:
9bb81565a4e7f0b9ec9e9f3d912a841633ad99587b79c08d290757cde054c05a - Sigstore transparency entry: 369956425
- Sigstore integration time:
-
Permalink:
jaydu1/causarray@b1d97b450657b0a2218095a3060e7c477f831f86 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/jaydu1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@b1d97b450657b0a2218095a3060e7c477f831f86 -
Trigger Event:
push
-
Statement type:
File details
Details for the file causarray-0.0.5-py3-none-any.whl.
File metadata
- Download URL: causarray-0.0.5-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8932b8f285a9353ba33a08ccf5e0d560f9e6d4cd1856c8d0acae06aaf1365ae7
|
|
| MD5 |
9cb743a56bbd618db19419f89f7bcf41
|
|
| BLAKE2b-256 |
14ccd00fcb8576f36180212c272189b7ba010ed0739f745e76d399a97c8bf7ed
|
Provenance
The following attestation bundles were made for causarray-0.0.5-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on jaydu1/causarray
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
causarray-0.0.5-py3-none-any.whl -
Subject digest:
8932b8f285a9353ba33a08ccf5e0d560f9e6d4cd1856c8d0acae06aaf1365ae7 - Sigstore transparency entry: 369956438
- Sigstore integration time:
-
Permalink:
jaydu1/causarray@b1d97b450657b0a2218095a3060e7c477f831f86 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/jaydu1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@b1d97b450657b0a2218095a3060e7c477f831f86 -
Trigger Event:
push
-
Statement type: