API Reference

API Reference#

import scfair as scf

Public surface: the names below, plus scfair.__version__. Everything else in scfair.pp is an implementation detail.

Signatures come from the source docstrings. Defaults are n_top_genes="auto" and balance_method="append" (set equals top-(k+m)). Usage: Quickstart, How selection works.

Preprocessing (scfair.pp)#

highly_variable_genes

Select highly variable genes (structure auto-n + cutoff append).

HVGOptions

Secondary controls for HVG selection.

diagnose_from_labels

Imbalance diagnosis from an obs label column (pre-call planning).

estimate_n_populations

Report how many populations this dataset's density field supports.

restore_raw_counts

Restore raw counts into .X from a snapshot or counts layer.

Package#

__version__

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str