Skip to main content

AmbiDose

PyPI version PyPI downloads Bioconda Conda downloads Python versions Documentation CI License 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.3.2 (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

Pin the package version used in the analysis, for example ambidose==0.3.2. Software record: 10.5281/zenodo.22278199. See CITATION.cff and the citation page.

@software{li2026ambidose,
  title   = {AmbiDose: per-cell ambient dose removal for droplet scRNA-seq},
  author  = {Li, Zhao},
  year    = {2026},
  version = {0.3.2},
  doi     = {10.5281/zenodo.22278199},
  url     = {https://doi.org/10.5281/zenodo.22278199},
}

License

Software: Apache License 2.0.

Author

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ambidose-0.3.2.tar.gz (470.1 kB view details)

Uploaded Source

Built Distribution

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

ambidose-0.3.2-py3-none-any.whl (109.2 kB view details)

Uploaded Python 3

File details

Details for the file ambidose-0.3.2.tar.gz.

File metadata

  • Download URL: ambidose-0.3.2.tar.gz
  • Upload date:
  • Size: 470.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ambidose-0.3.2.tar.gz
Algorithm Hash digest
SHA256 4e3fd2cc79db996aee57d953094bea5285f0d428c08cd642621ae7ca57d8647f
MD5 fef6f398d92867d24824c3227f4173c7
BLAKE2b-256 eafda20a3fac28d962936c4bf4f3921f6f30ecd7c06f3bc38cdd08020b3b2b5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ambidose-0.3.2.tar.gz:

Publisher: publish.yml on leelieber2025/AmbiDose

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

File details

Details for the file ambidose-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: ambidose-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 109.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ambidose-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad260240e32f75fec59916a386b244dfd8703d4dddab63fa22bac356674082d7
MD5 5292ca8d1f22024fda20db7bfa2dd018
BLAKE2b-256 1a47a094c3e15f668e94aa5ce7188b71638c73dc8ee92f76c3525fbaaefdf4dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for ambidose-0.3.2-py3-none-any.whl:

Publisher: publish.yml on leelieber2025/AmbiDose

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

Release history Release notifications | RSS feed

0.5.1

2 files

0.3.3

2 files

This release

0.3.2 This release

2 files

0.3.1

2 files

0.3.0

2 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