qc_st_plots | R Documentation |
This function returns QC metric plots with Spatial Seurat objects.
qc_st_plots( se, nfeat = "nFeature_Spatial", ncount = "nCount_Spatial", slot = "counts", assay = "Spatial", percent.mito = NULL, percent.ribo = NULL )
se |
Spatial Seurat object we want to assess. |
nfeat |
Character string indicating the name of the variable in the metadata containing the number of genes. |
ncount |
Character string indicating the name of the variable in the metadata containing the number of UMIs. |
slot |
slot from where we want to extract the count matrix. |
assay |
assay from where we want to extract the count matrix. |
percent.mito |
Character string indicating the name of the variable in the metadata containing the mitochondrial percentage. Defaults to NULL in which case it computes it using the gollowing regex "^MT-". |
percent.ribo |
Character string indicating the name of the variable in the metadata containing the ribosomal percentage. Defaults to NULL in which case it computes it using the gollowing regex "^RPL|^RPS". |
List with the 4 QC plots
## Not run: library(Seurat) library(SeuratData) sp_obj <- SeuratData::LoadData(ds = "stxBrain", type = "posterior1") qc_st_plots( se = sp_obj, nfeat = "nFeature_Spatial", ncount = "nCount_Spatial", slot = "counts", assay = "Spatial") %>% cowplot::plot_grid( plotlist = ., align = "hv", axis = "trbl") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.