pegasus.estimate_background_probs

pegasus.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

  • None

  • Update adt.uns

    • adt.uns["background_probs"]: estimated antibody background probability.

Example

>>> pg.estimate_background_probs(adt)