nfeature_hist_st: This function returns the number of features histogram of the...

View source: R/qc_spatial.R

nfeature_hist_stR Documentation

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

Description

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

Usage

nfeature_hist_st(se, nfeat = "nFeature_Spatial", sample_id = "orig.ident")

Arguments

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.

sample_id

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

Value

Histogram with the nFeature distribution by sample.

Examples

## Not run: 
library(Seurat)
library(SeuratData)
sp_obj <- SeuratData::LoadData(ds = "stxBrain", type = "posterior1")
nfeature_hist_st(se = sp_obj,
                 nfeat = "nFeature_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.