co_occurrence(adata, cluster_key, spatial_key='spatial', n_steps=50, copy=False, n_splits=None, n_jobs=None, backend='loky', show_progress_bar=True)¶
Compute co-occurrence probability of clusters.
The co-occurrence is computed across
n_stepsdistance thresholds in spatial dimensions.
AnnData) – Annotated data object.
int) – Number of distance thresholds at which co-occurrence is computed.
bool) – If True, return the result, otherwise save it to the
bool) – Whether to show the progress bar or not.
- Return type
copy = True, returns the co-occurrence probability and the distance thresholds intervals.
Otherwise, modifies the
adatawith the following keys: