moscot.base.problems.OTProblem.estimate_marginals

OTProblem.estimate_marginals(adata, *, source)[source]

Estimate the source or target marginals.

Note

This function returns uniform marginals.

Parameters:
  • adata (AnnData) – Annotated data object.

  • source (bool) – Whether to estimate the source or target marginals.

  • kwargs – Additional keyword arguments.

Return type:

ndarray[Any, dtype[float64]]

Returns:

: The estimated source or target marginals of shape [n,] or [m,], depending on the source.