moscot.problems.space.MappingProblem.prepare#

MappingProblem.prepare(sc_attr, batch_key=None, spatial_key='spatial', var_names=None, normalize_spatial=True, joint_attr=None, cost='sq_euclidean', cost_kwargs=mappingproxy({}), a=None, b=None, **kwargs)[source]#

Prepare the mapping problem problem.

See also

Parameters:
Return type:

MappingProblem[TypeVar(K, bound= Hashable)]

Returns:

: Returns self and updates the following fields: