ncount_hist_st: This function returns the number of counts histogram of the...

View source: R/qc_spatial.R

ncount_hist_stR Documentation

This function returns the number of counts histogram of the Seurat object.

Description

This function returns the number of counts histogram of the Seurat object.

Usage

ncount_hist_st(se, ncount = "nCount_Spatial", sample_id = "orig.ident")

Arguments

se

Spatial Seurat object we want to assess.

sample_id

Feature in metadata by which to identify the sample if the object is merged and contains several samples.

ncounts

Character string indicating the name of the variable in the metadata containing the number of genes.

Value

Histogram with the nUMI distribution by sample.

Examples

## Not run: 
library(Seurat)
library(SeuratData)
sp_obj <- SeuratData::LoadData(ds = "stxBrain", type = "posterior1")
ncount_hist_st(se = sp_obj,
                 ncount = "nCount_Spatial",
                 sample_id = "orig.ident")

## End(Not run)


Single-Cell-Genomics-Group-CNAG-CRG/SCrafty-package documentation built on Aug. 20, 2022, 9:29 a.m.