Skip to main content

AmbiDose

PyPI version PyPI downloads Bioconda Bioconda downloads Total 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.15 (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.15. 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.15

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.15
File Size Uploaded Provenance Actions
ambidose-0.5.15.tar.gz 503.4 kB With provenance Details for ambidose-0.5.15.tar.gz

Built distribution (wheel)

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

Total release size: 630.4 kB

Release files / ambidose-0.5.15.tar.gz

Download URL ambidose-0.5.15.tar.gz
Size 503.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4d98cac8fea22c96a4ca1aa8f9a5ce17618fd09445b2c3f1a86a01c4685106c4
BLAKE2b-256 checksum
How to use checksums
5a4bfc0619036fd4440b97e4cc443c93d802002c0c7304883e56fe9503f44e90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

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

Download URL ambidose-0.5.15-py3-none-any.whl
Size 127.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b4076a0094cb6ed76c48fe28df70ce0020ae2d352640220dba51062ba810050
BLAKE2b-256 checksum
How to use checksums
fee99c772d521f1cd6ff3a61012539139dd04c6638de4b02b21cfd73c3f9c1c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Security for ambidose 0.5.15

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ambidose-0.5.15.tar.gz

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 Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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