Skip to main content

emptydrops

Python implementation of emptydrops-like cell calling as in CellRanger v3.0.2

Disclaimer:

All code originally comes from https://github.com/10XGenomics/cellranger with minimal modifications for packaging and running under python3.

Usage:

from emptydrops import find_nonambient_barcodes
from emptydrops.matrix import CountMatrix

matrix = CountMatrix.from_legacy_mtx(mtx_dir)

find_nonambient_barcodes(
    matrix,          # Full expression matrix
    orig_cell_bcs,   # (iterable of str): Strings of initially-called cell barcodes
    min_umi_frac_of_median=0.01,
    min_umis_nonambient=500,
    max_adj_pvalue=0.01
)

Returns:

[
    'eval_bcs',      # Candidate barcode indices in addition to those in `orig_cell_bcs` (n)
    'log_likelihood',# Ambient log likelihoods (n)
    'pvalues',       # pvalues (n)
    'pvalues_adj',   # B-H adjusted pvalues (n)
    'is_nonambient', # Boolean nonambient calls (n)
]

Metadata

Release files for emptydrops 0.0.5

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

Source distribution (sdist)

Source distribution for emptydrops 0.0.5
File Size Uploaded
emptydrops-0.0.5.tar.gz 28.2 kB Details

Built distribution (wheel)

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

Total release size: 57.3 kB

Release files / emptydrops-0.0.5.tar.gz

Download URL emptydrops-0.0.5.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
108f5ed56d99946eb0752ccdd8d3267bc18cbe25455573ec4c561395831acaa0
BLAKE2b-256 checksum
How to use checksums
83a4383d41ec1fcee0d486dcebfbba1156fe0e64bb4442b4003ce04b296a1fd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.0

Release files / emptydrops-0.0.5-py3-none-any.whl

Download URL emptydrops-0.0.5-py3-none-any.whl
Size 29.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1405ceec42c95347c41b5a7d780babe1df5db66880c7404baef69c5114b961e
BLAKE2b-256 checksum
How to use checksums
65b881dbce25b3a99a4abc6cf258cfe8387e08c2be2d0219e92b1554d8a5a3ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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