moscot.base.problems.BirthDeathProblem.estimate_marginals#
- BirthDeathProblem.estimate_marginals(adata, source, proliferation_key=None, apoptosis_key=None, **kwargs)[source]#
Estimate the source or target marginals based on marker genes, either with the birth-death process, as suggested in [Schiebinger et al., 2019], or with an exponential kernel.
See
score_genes_for_marginals()
on how to compute the proliferation and apoptosis scores.- Parameters:
- Return type:
- Returns:
: The estimated source or target marginals of shape
[n,]
or[m,]
, depending on thesource
. Ifsource = True
, also updates the following fields:prior_growth_rates
- prior estimate of the source growth rates.
Examples