API reference#
STDataset#
|
STDataset: A meta class for discribing Spatial Transcriptomics data. |
Load dataset from disk#
|
Load 10X Genomics Space Ranger outputs and generate STDataset. |
|
Load anndata saved h5ad file and generate STDataset. |
Run svgbit within one function#
|
Run all part of svgbit within one function. |
Filters#
|
Filter genes with low variance. |
|
Filter genes with high expression ratio. |
|
Filter genes with quantile. |
Normalizers#
|
Perform logcpm on dataset. |
|
Perform CPM on dataset. |
Visualization#
|
Draw SVG distribution heatmap. |
|
Draw SVG type map. |
|
Draw hotspot distribution map for one SVG cluster. |
|
Draw hotspot expression for one gene. |
|
Draw expression for one gene. |
|
Draw hotspot expression for multiple genes. |
Gene combinations#
|
Find gene pairs in certain SVG cluster. |
STDataset Methods#
Acquire weight for analysis. |
|
|
Acquire hotspot matrix. |
|
Acquire local Di and global AI value. |
|
Find SVG clusters. |
STDataset Attributes#
A Series for AI value. |
|
A DataFrame for local Di value. |
|
Coordinate information. |
|
Expression matrix. |
|
SVG cluster result. |
|
A pd.DataFrame for spot type. |
|
An Index for genes' names. |
|
Hotspot matrix. |
|
Number of total genes. |
|
Number of total spots. |
|
An Index for spots' names. |
|
Weight used by svgbit. |
|
What kind of weight is used. |
Inner functions, not recommended use directly#
|
Cluster SVGs using hotspot matrix. |
|
Calculate Spatial Transcriptomics AI value for all genes. |
|
Calculate local moran for hotspot identification. |
|
Calculate global Moran's I value. |