ribo_pct_hist_st: This function returns the ribosomal % histogram of the Seurat...

View source: R/qc_spatial.R

ribo_pct_hist_stR Documentation

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

Description

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

Usage

ribo_pct_hist_st(se, ribo_percent = "percent.ribo", sample_id = "orig.ident")

Arguments

se

Spatial Seurat object we want to assess.

ribo_percent

Character string indicating the name of the variable in the metadata containing the ribosomal % 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 Ribosomal % distribution by sample.

Examples

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