squidpy.gr.interaction_matrix

squidpy.gr.interaction_matrix(adata, cluster_key, connectivity_key=None, normalized=False, copy=False, weights=False)[source]

Compute interaction matrix for clusters.

Parameters:
Return type:

Optional[ndarray[Any, dtype[Any]]]

Returns:

: If copy = True, returns the interaction matrix.

Otherwise, modifies the adata with the following key: