A universal tool for rapid identification of cancer foci and tumor boundary in spatial transcriptomics
SpotOnco : Provides an efficient method for rapid identification of cancer foci and tumor boundaries in tumor spatial transcriptomics data by exploiting spatially scored expression patterns of a malignant cell gene set
- R packages: Seurat, VISION, tidyverse
# install the SpotOnco package
devtools::install_github('Jingwe-Zhao/SpotOnco')
library(SpotOnco)
library(VISION)
library(clusterProfiler)
library(tidyverse)
# load demo data
data<- system.file("data", "CRC1.RDS", package = "SpotOnco")
ST<-readRDS(data)
# SCTransform And Clustering
ST<-SCT(ST, resolution = 0.3)
SpatialPlot(ST)
# malignancy Scoring
ST<-CompScore(ST, assay = "Spatial")
# Niche category
ST<-NicheCat(ST,formula = 'Q1')
# Tumor boundary recognition Description
ST <- CompBdy(ST, NicheLabel = 'Mal', minSpot = 10, sliceName = "CRC1")
SpatialPlot(ST,group.by = 'Region')