squidpy.gr.ligrec

squidpy.gr.ligrec(adata, cluster_key, interactions=None, complex_policy='min', threshold=0.01, corr_method=None, corr_axis='clusters', use_raw=True, copy=False, key_added=None, gene_symbols=None, *, n_perms=1000, rng=None, clusters=None, alpha=0.05, n_jobs=None, show_progress_bar=True, interactions_params=mappingproxy({}), transmitter_params=mappingproxy({'categories': 'ligand'}), receiver_params=mappingproxy({'categories': 'receptor'}), table_key=None)[source]

Perform the permutation test as described in [Efremova et al., 2020].

Parameters:
Return type:

Mapping[str, DataFrame] | None

Returns:

If copy = True, returns a dict with following keys:

Otherwise, modifies the adata object with the following key:

NaN p-values mark combinations for which the mean expression of one of the interacting components was 0 or it didn’t pass the threshold percentage of cells being expressed within a given cluster.