Skip to main content

AmbiDose

PyPI version PyPI downloads Bioconda Conda downloads Python versions Documentation CI License bioRxiv DOI

AmbiDose removes ambient RNA from droplet scRNA-seq. Empty droplets estimate the soup profile χ. Each cell receives an operational dose d_c = ρ_c · n_c. Type-aware subtraction writes non-negative integer counts. The method does not correct batch effects or assign cell types.

Docs: Read the Docs.

Install

pip install ambidose
# or: conda install -c conda-forge -c bioconda ambidose

Python 3.10–3.13. A GPU is not required. Details: installation.

First run

import scanpy as sc
import ambidose as amdose

adata = sc.read_10x_mtx("filtered_feature_bc_matrix/")
adata = amdose.denoise(adata, raw="raw_feature_bc_matrix.h5", sample_key=None)
# adata.X is denoised integer UMI; original counts in layers["raw_counts"]
ambidose denoise --input /path/to/outs --output cleaned.h5ad

Treat rho as an operational dose. Check obs["ambidose_rho_trust"] and the QC report before using it as a contamination rate.

Status

0.5.12 (Alpha). Import as import ambidose as amdose. The entry point is denoise(). See the API reference.

Next steps

  1. Installation
  2. Quickstart
  3. Tutorials
  4. FAQ
  5. From R

Citation

If you use AmbiDose in published work, please cite the preprint:

Zhao Li, Aaron W. James, Shengxuan Li.
AmbiDose: per-cell removal budgets for ambient RNA contamination.
bioRxiv (2026). https://doi.org/10.64898/2026.09.27.754849

@article{li2026ambidose,
  title   = {AmbiDose: per-cell removal budgets for ambient RNA contamination},
  author  = {Li, Zhao and James, Aaron W. and Li, Shengxuan},
  journal = {bioRxiv},
  year    = {2026},
  doi     = {10.64898/2026.09.27.754849},
  url     = {https://www.biorxiv.org/content/10.64898/2026.09.27.754849v1},
}

For the software record, cite the Zenodo DOI. Pin the package version used in the analysis, for example ambidose==0.5.12. See CITATION.cff and the citation page.

License

Software: Apache License 2.0.

Author

Zhao Li (李钊) Email: leelieber@gmail.com

Metadata

Release files for ambidose 0.5.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ambidose 0.5.12
File Size Uploaded
ambidose-0.5.12.tar.gz 492.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ambidose 0.5.12
File Interpreter ABI Platform
ambidose-0.5.12-py3-none-any.whl Python 3 none any Details

Total release size: 613.2 kB

Release files / ambidose-0.5.12.tar.gz

Download URL ambidose-0.5.12.tar.gz
Size 492.4 kB
Tags Source
SHA-256 checksum
How to use checksums
47bf55a021a77ed33da457dba38412c9e88749a73fe9773ba5a6039a44d2d108
BLAKE2b-256 checksum
How to use checksums
7f2afe8beaa742d4cf9b3bc8fd1ea80074fdd9efd7f5773a35e3a78c04278a19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / ambidose-0.5.12-py3-none-any.whl

Download URL ambidose-0.5.12-py3-none-any.whl
Size 120.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4dd9d4b468272898cfa5d9da98883f02237c1c69697f6aa110bf894515cc5d78
BLAKE2b-256 checksum
How to use checksums
2a7ef762f5231a9c09708467a3b3212ced076d925047bd1e1ed795e2ecdb2b22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.13

2 release files

This release

0.5.12 This release

2 release files

0.5.11

2 release files

0.5.10

2 release files

0.5.9

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page