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.6.0 (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.6.0. 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.6.0

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.6.0
File Size Uploaded Provenance Actions
ambidose-0.6.0.tar.gz 512.6 kB With provenance Details for ambidose-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 642.3 kB

Release files / ambidose-0.6.0.tar.gz

Download URL ambidose-0.6.0.tar.gz
Size 512.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a1dc2ab374216d1e8fde62e224ed96e98644c94abf38a950e29362e59c650066
BLAKE2b-256 checksum
How to use checksums
d376e06427ca0456c25f7e0fb54aff4fb78e158df0e538f3103ba974c6467d4d
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 Dec 1, 2026.

Transparency log

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

Download URL ambidose-0.6.0-py3-none-any.whl
Size 129.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d71344c847e7a4b4df6bb2070c8e88ec70c5961729e3b94b087d25cbff058da4
BLAKE2b-256 checksum
How to use checksums
87ad99bde70c8a77dc18f3dc54e48bc61abba186397ecb30f3e655a16c54e3cf
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 Dec 1, 2026.

Transparency log

Security for ambidose 0.6.0

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.6.0.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 Dec 1, 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