sccloud.estimate_background_probs¶
-
sccloud.estimate_background_probs(adt, random_state=0)[source]¶ For cell-hashing data, estimate antibody background probability using EM algorithm.
- Parameters
adt (
anndata.AnnData) – Annotated data matrix for antibody.random_state (
int, optional, default:0) – Random seed set for reproducing results.
- Returns
NoneUpdate
adt.uns–adt.uns["background_probs"]: estimated antibody background probability.
Example
>>> scc.estimate_background_probs(adt)