knitr::opts_chunk$set(echo = TRUE) suppressMessages(library(sc2marker)) suppressMessages(library(Seurat)) devtools::install_github('satijalab/seurat-data') suppressMessages(library(SeuratData))
You can load the HCA-BM object by SeuratData.
#load reference data InstallData("bmcite") bmc <- LoadData(ds = "bmcite") Idents(bmc) <- "celltype.l1" table(bmc@active.ident)
To run sc2marker you need to execute the following command, providing a clustered single cell data sets (as Seurat object), the cell type of interest and the antibody databased (IHC, ICC or Flow).
nk.markers <- Detect_single_marker(bmc, id = "NK", category = "Flow", org = "human", min.pct = 0.1) get_antibody(nk.markers, org = "human")
# Ridge plot of top 9 markers of NK cells plot_ridge(bmc, id = "NK", genes = nk.markers[1:9,]$gene, ncol = 3, assay = "RNA", aggr.other = F)
b.markers <- Detect_single_marker(bmc, id = "B cell", category = "Flow", org = "human", min.pct = 0.1) get_antibody(b.markers, org = "human")
# Ridge plot of top 9 markers of B cells plot_ridge(bmc, id = "B cell", genes = b.markers[1:9,]$gene, ncol = 3, assay = "RNA", aggr.other = F)
t.markers <- Detect_single_marker(bmc, id = "T cell", category = "Flow", org = "human", min.pct = 0.1) get_antibody(t.markers, org = "human")
# Ridge plot of top 9 markers of T cells plot_ridge(bmc, id = "T cell", genes = t.markers[1:9,]$gene, ncol = 3, assay = "RNA", aggr.other = F)
Prog.markers <- Detect_single_marker(bmc, id = "Progenitor cells", category = "Flow", org = "human", min.pct = 0.1) get_antibody(Prog.markers, org = "human")
# Ridge plot of top 9 markers of Progenitor cells plot_ridge(bmc, id = "Progenitor cells", genes = Prog.markers[1:9,]$gene, ncol = 3, assay = "RNA", aggr.other = F)
Mono.markers <- Detect_single_marker(bmc, id = "Mono/DC", category = "Flow", org = "human", min.pct = 0.1) get_antibody(Mono.markers, org = "human")
# Ridge plot of top 9 markers of Mono cells plot_ridge(bmc, id = "Mono/DC", genes = Mono.markers[1:9,]$gene, ncol = 3, assay = "RNA", aggr.other = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.