add_metadata: Add metadata of variables and samples.

View source: R/preprocess.R

add_metadataR Documentation

Add metadata of variables and samples.

Description

This function adds metadata of variables and samples.

Usage

add_metadata(sce = NULL, mitochondria_symbol = NULL)

Arguments

sce

A SingleCellExperiment object.

mitochondria_symbol

A string representing for mitochondrial genes. This function computes percents of reads that map to the mitochondrial genes. Examples are '^MT-', '^mt-', etc.

Value

A SingleCellExperiment object.

Examples

data(pbmc_eg)
pbmc <- add_metadata(sce = pbmc_eg, mitochondria_symbol = "^MT-")


okadalabipr/ASURAT documentation built on Nov. 25, 2022, 5:40 p.m.