mit_pct_hist_st: This function returns the mitochondrial % histogram of the...

View source: R/qc_spatial.R

mit_pct_hist_stR Documentation

This function returns the mitochondrial % histogram of the Seurat object.

Description

This function returns the mitochondrial % histogram of the Seurat object.

Usage

mit_pct_hist_st(se, mito_percent = "percent.mito", sample_id = "orig.ident")

Arguments

se

Spatial Seurat object we want to assess.

mito_percent

Character string indicating the name of the variable in the metadata containing the mitochondrial % for each spot.

sample_id

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

Value

Histogram with the mitochondrial % distribution by sample.

Examples

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