squidpy.gr.interaction_matrix

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

Compute interaction matrix for clusters.

Parameters:
Return type:

ndarray[tuple[Any, ...], dtype[Any]] | None

Returns:

If copy = True, returns the interaction matrix.

Otherwise, modifies the adata with the following key: