Import Thor as:
import thor
Classes
Prediction of in silico cell gene expression
|
Class for in silico cell gene expression inference |
Preprocessing of WSI
|
Whole slide image class. |
Preprocessing of spatial transcriptomics
|
Class for spatial transcriptomics data. |
Example interface with external R packages
|
Class for running SPARK-X. |
API
Preprocessing
|
Preprocess the image and extract features from the cells. |
|
Load nuclei segmentation result from a file. |
|
Load nuclei segmentation result from a cellpose output file. |
|
Load nuclei segmentation result from a cellprofiler output file. |
|
Load nuclei segmentation result from a mask array npz file. |
|
Segment nuclei from H&E stained images using stardist, cellpose or histocartography. |
Advanced analyses
Analyze gene expression against a baseline in a selected region of interest (ROI). |
|
Compute differential gene expression (DGE) between two regions. |
|
|
Calculate pathway score for each cell using over-representation analysis. |
|
Infer TF activity using the CollecTRI database. |
|
Read polygon ROI from json file. |
|
Run CopyKAT on the input data. |
|
Convert AnnData object to matrix market format. |
|
Run the cell-cell communication analysis using the modified COMMOT method. |
Plotting
|
Color the cells or nuclei with one variable, gene name, or any other observable. |
|
Color the cells or nuclei with multiple variables. |
|
Color the cells or nuclei with a variable, gene or any observable (gene expression vector as input). |
|
Color the cells or nuclei with multiple variables, gene or any observable (gene expression array as input). |
|
Color the cells or nuclei with cluster labels. |
|
Plot spatial expression data with spots on top. |
|
Annotate the ROI and baseline on the image. |
|
Plot log2foldchange of gene expression against distance from the baseline. |
|
Plot log2foldchange of gene expression against distance from the baseline. |