API
Import Bering as:
import Bering as br
Objects
|
Build Bering Object for training and prediction purposes. |
Preprocess
|
Add image features to spots |
Graph
|
Build nearest neighbor graph for mRNA/protein colocalization. |
|
Build Graphs from unsegmented spots |
|
Build Graphs for originally segemented cells. |
|
Create training and testing data loader |
Models
|
Node classification Model with Graph Convolutional Networks (GCN) and Multilayer Perceptron (MLP). |
|
Node classification Model with Multilayer Perceptron (MLP) without using graph models. |
|
This function is from |
|
Convolutional neural network to learn representation from staining images of different sizes. |
|
Edge classifier model which learns node classification embedding, image embedding and distance kernel |
Training
|
Trainer for node classification model. |
|
Trainer for edge classification model. |
|
Training both node classification and edge classification models. |
|
Early Stop implementation for loss values |
Datasets
|
Pre-processed MERFISH dataset from Zhang et al. |
|
Pre-processed Nanostring CoxMx dataset from He et al. |
|
Pre-processed ISS CA1 (sample 3-1 left) from Qian et al. |
|
Pre-processed MERFISH dataset from Petukhov et al. |
Pre-processed Stereo-seq dataset from Chen et al. |
|
|
Pre-processed Xenium dataset from Janesick et al. |
Pretrained Models
Pre-trained model of MERFISH Cortex dataset from Zhang et al. |
|
|
Pre-trained model of Nanostring ung cancer dataset from He et al. |
|
Pre-trained model of ISS CA1 hippocampus data (sample 3-1 left) from Qian et al. |
Pre-trained model of Xenium breast cancer dataset from Janesick et al. |
Plotting
Plot the whole slice, with individual segmented cells as spots. |
|
|
Plot node classfication results on the original data and predicted data. |
|
Plot the segmentation results with cell IDs on the original data and predicted data. |
|
Plot Original Cell IDs and Cell ID distribution on latent space Either input a cell name and then extract a table or a pre-filtered spots window. |
|
Plot original spots and newly-segmented spots |
Utilities
|
Node classification for all spots in the slice |
|
Run cell segmentation for all spots. |
|
Annotate segmented cells based on ensemble strategy. |
|
Run a standard analysis pipeline from single-cell data with raw counts. |