Skip to main content

pyaugur

Python port of Augur: cell type prioritization in high-dimensional single-cell data.

Install

pip install pyaugur

Quick Start

import numpy as np
import pandas as pd
from pyaugur import calculate_auc

# Expression matrix: genes x cells
expr = pd.read_csv("expression.csv", index_col=0).values
meta = pd.read_csv("metadata.csv")  # columns: cell_type, label

result = calculate_auc(expr, meta=meta)
print(result["AUC"])  # Mean AUC per cell type, ranked

API

calculate_auc(input, meta=None, ...)

Train a classifier (random forest or logistic regression) to predict condition labels per cell type, evaluate AUC in cross-validation.

Returns: dict with AUC (DataFrame), results, feature_importance, parameters.

calculate_differential_prioritization(augur1, augur2, permuted1, permuted2, ...)

Permutation test for differential prioritization between two conditions.

select_variance(mat, var_quantile=0.5)

Feature selection by variance (loess on CV vs mean expression).

select_random(mat, feature_perc=0.5)

Random feature subsampling.

Performance

vs R Augur on sc_sim dataset (15,697 genes x 600 cells):

Metric Value
Pearson r (AUC parity) 0.9977
Speedup 4.0x

License

GPL-3.0 (matching upstream R package).

Metadata

Release files for pyaugur 0.1.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 pyaugur 0.1.0
File Size Uploaded Provenance Actions
pyaugur-0.1.0.tar.gz 13.2 kB Without provenance Details for pyaugur-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 24.5 kB

Release files / pyaugur-0.1.0.tar.gz

Download URL pyaugur-0.1.0.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
deebb4229fd3a88925058ca968c3f781fabef12a8100bee22e4f5b4a202df4b2
BLAKE2b-256 checksum
How to use checksums
82e2b4329de0d011dd547956743255354a53caebaa2bd92883846a80cd4a18c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Release files / pyaugur-0.1.0-py3-none-any.whl

Download URL pyaugur-0.1.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38dc1ca2b0efb0a8f286f0abd9a7eb9f8c94fe92908af1ad47586452535c90c4
BLAKE2b-256 checksum
How to use checksums
f700ed579ace1eb98eaab48f43fea26c065d0bea756d4008e2ee717597690c3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Security for pyaugur 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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