SMURFΒΆ
Import SMURF as:
import smurf as su
Calculates the weight matrix mapping cell types to gene expression profiles. |
|
Expands cell regions by iteratively adding neighboring spots based on a scoring criterion. |
|
Combines cell and spot data after optimization to generate the final single-cell dataset. |
|
Quickly generates the final single-cell dataset by combining cell and spot data without using GPU resources. |
|
Performs iterative cell arrangement for spatial transcriptomics analysis. |
|
Assigns cells to pixels in the spatial data based on spot compositions. |
|
Prepares data for optimization by organizing cells and spots, calculating weights, and grouping cells for computational efficiency. |
|
Creates an AnnData object for nuclei by aggregating spot-level gene expression data. |
|
Plots the spatial distribution of cell clusters and individual cell types. |
|
Plots the original tissue image with cell type assignments overlayed. |
|
Prepares the spatial data object by mapping tissue image data to spot positions. |
|
Generates a cell type assignment array based on clustering results for visualization. |
|
Performs standard single-cell RNA-seq analysis, including preprocessing, dimensionality reduction, clustering, and visualization. |
|
Starts the optimization process to estimate cell-type proportions in each spot using PyTorch. |