API
Import Monkeybread as:
import monkeybread as mb
Calculations: calc
|
Compute cellular niches. |
|
Calculates a neighborhood profile for each cell. |
|
Calculates the spatial distribution of cells of a given cell type using kernel density estimation. |
|
Calculates an average co-expression score of a ligand-receptor pair between neighboring cells.. |
|
Calculates an average co-expression score of a ligand-receptor pair between neighboring cells within each cellular niche calculated by |
|
Calculates the distance from each cell in one group to the nearest cell in another group. |
|
Calculates the distance from each cell in one group to the nearest cell in another group. |
|
Calculate cell neighbors. |
|
Calculate cell neighbors. |
|
Given a set of query groups of cells, group_1, group_2, . |
|
Given a set of query groups of cells, group_1, group_2, . |
Plotting: plot
|
Heatmap plotting the mean, normalized neighbor count of each cell type within each niche. |
|
Plots the spatial density of cells across the tissue, as calculated by |
|
A wrapper around both |
|
Plot the distribution of observed distances from each cell in one group (e.g., all T cells) to its closest cell in a second group (e.g., all macrophages) as calculated by |
|
Plot a heatmap of the p-values calculated by |
|
Shows embeddings of cells with their neighbors. |
|
|
|
Shows a filtered embedding, allowing for examination of specific cells. |
|
Shows embeddings of cells neighboring other cells with zoomed focus. |
|
Plots a scatterplot highlighting the observed ligand-receptor scores and significance. |
|
Plot the ligand-receptor co-expression score between pairs of neighboring cells. |
|
Plot the ligand-receptor co-expression score between pairs of neighboring cells. |
Create a barplot showing the ligand/receptor score for a specific ligand/receptor pair within each niche. |
|
Create a heatmap showing the ligand/receptor scores for a specific set of ligand/receptor pairs within each niche. |
Statistical Tests: stat
|
Calculates an expected null distribution of shortest distances from cells in |
|
Performs the same statistical analyses implemented by |
|
Calculates statistical significance of the co-expression of ligand-receptor pairs between neighboring cells. |
Utility Functions: util
|
Loads data from MERSCOPE, in accordance to the folder structure of the FFPE data release. |
|
Subsets cells based on gene expression and optionally labels them. |
Load ligand-receptor pairs from the Omnipath database that are also in the provided dataset. |