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-")


keita-iida/ASURATBI documentation built on Feb. 16, 2023, 9:37 a.m.