tl module#
Helpful tools
Generate distribution of O/E ratios for colocalization probabilities of cell type pairs in randomly generated doublets (background dist) for tests in PIC-seq data |
|
Generate one set of O/E ratios for cell type pair co-localization probabilities from randomly paired single cells. |
|
Assign properties to network g to visualize with gravis interactive networks |
|
Generate boolean element indicating whether the specified element (cell pair) is contained in a list (category) |
|
Make dataframe of cell types with their corresponding niches and colors |
|
Compute standard centrality statistics for a (signed) NetworkX graph. |
|
Reduce the number of elements belonging to |
|
Get filtering object indicating which cell pairs are differentially co-localized |
|
Compute the expected co-localization probability of each cell type pair by multiplying cell type proportions derived from single-cell (singlets) data. |
|
Generate nreps sets of O/E ratios for cell type pair co-localization probabilities by running |
|
Get dataframe of cell pair to niche pair correspondence |
|
Optimized version of get_spatial_radius_BG_OEratios_DF using sparse matrix multiplication. |
|
Get cell type proportions per spot by summing the probabilities of cells of the same kind in each spot |
|
Bar plots of the top nodes by betweenness, PageRank, and signed degree centrality. |
|
Remove suffixes '|L' , '|R' and '|TF' from cell - cell communication (CrossTalkeR) tables |
|
Get dataframe for scores heatmap from dataframe obtained from diffColoc_test() |
|
get unique elements in array without re-sorting |