nichesphere.tl.getColocFilter#
- nichesphere.tl.getColocFilter(pairCatDF, adj, oneCTints)#
Get filtering object indicating which cell pairs are differentially co-localized
- Parameters:
pairCatDF (pd.DataFrame) – dataframe of cell pairs and corresponding niche pairs
adj (pd.DataFrame) – cell types x cell types adjacency matrix (calculated from the cell cell interaction scores)
oneCTints (list) – list of single cell interactions (celltype->celltype)
- Returns:
colocFilt – Dataframe with cell type pairs in the form ‘celltype->celltype’ as index and a ‘filter’ column indicating which cell pairs are differentially co-localized with a 1 (or 0 if they are not)
- Return type:
pd.DataFrame