moscot.problems.time.LineageProblem.compute_batch_distances

LineageProblem.compute_batch_distances(time, batch_key, posterior_marginals=True, backend='ott', **kwargs)

Compute the average Wasserstein distance between batches for a specific time point.

See also

  • TODO(MUCDK): create an example showing the usage.

Parameters:
  • time (TypeVar(K, bound= Hashable)) – Time point for which to compute the distances.

  • batch_key (str) – Key in obs where batches are stored.

  • posterior_marginals (bool) – Whether to use posterior_growth_rates or prior_growth_rates. TODO(MUCDK): needs more explanation

  • backend (Literal['ott']) – Backend used for the distance computation.

  • **kwargs (Any) – The description is missing.

Return type:

float

Returns:

: The average distance between batches for a specific time point.