Skip to content

iscc.data.estimate_rna

estimate_rna(adata, protocol='10x', batch_key=None, count_model='nb', fit_dropout=None)

Fit RNABatchHyperParams from a real scRNA count matrix (Splatter-style).

Parameters:

Name Type Description Default
adata AnnData | DataFrame | ndarray

Raw integer counts, cells x genes. (Library-size / dispersion fits assume counts, not log/normalized values.)

required
protocol str

"10x" or "smartseq3" (aliases accepted). Sets which components are active and supplies priors for the fields counts-only data cannot identify (ambient, doublets).

'10x'
batch_key str | None

adata.obs column with batch labels. With >=2 batches, sigma_batch and depth_batch_sigma are fit; otherwise they default to 0 (single-batch data).

None
fit_dropout bool | None

Force dropout fitting on/off. Default: on for 10x, off for Smart-seq3.

None

Returns:

Type Description
RNAEstimate