library(Seurat)
data(toydata)
seu <- toydata$seu
seu$cluster <- Idents(seu)
gclink <- data.frame(
gene = c(
"FBLN1", "CCDC80", "LYPD3", "MLPH", "HOXD9", "EGFL7",
"HAVCR2", "IGSF6", "KRT5", "KRT6B", "CD79A", "DERL3",
"CAV1", "AVPR1A", "CD3G", "CD3D"
),
cluster = c(
"CAFs", "CAFs", "Cancer Epithelial", "Cancer Epithelial",
"Endothelial", "Endothelial", "Myeloid", "Myeloid",
"Normal Epithelial", "Normal Epithelial", "Plasmablasts",
"Plasmablasts", "PVL", "PVL", "T-cells", "T-cells"
)
)
score <- SigScore(
seu, reduction = "caesar", label = "cluster", gclink = gclink,
return.mean = TRUE
)
print(score)
score <- SigScore(
seu, reduction = "caesar", label = "cluster",
gclink = gclink, return.mean = FALSE
)
print(score)
Run the code above in your browser using DataLab