moscot.problems.space.MappingProblem.correlate

MappingProblem.correlate(var_names=None, corr_method='pearson', device=None, groupby=None, batch_size=None)

Correlate true and predicted gene expression.

Warning

Sparse matrices stored in X will be densified.

Parameters:
Return type:

Union[Mapping[Tuple[TypeVar(K, bound= Hashable), TypeVar(K, bound= Hashable)], Mapping[Any, Series]], Mapping[Tuple[TypeVar(K, bound= Hashable), TypeVar(K, bound= Hashable)], Series]]

Returns:

: Correlation for each solution in solutions.