Learn R Programming

rliger (version 2.0.1)

getProportionMito: Calculate proportion mitochondrial contribution

Description

Calculates proportion of mitochondrial contribution based on raw or normalized data.

Usage

getProportionMito(object, use.norm = FALSE, pattern = "^mt-")

Value

Named vector containing proportion of mitochondrial contribution for each cell.

Arguments

object

liger object.

use.norm

Deprecated Whether to use cell normalized data in calculating contribution. Default FALSE.

pattern

Regex pattern for identifying mitochondrial genes. Default "^mt-" for mouse.

Examples

Run this code
# Example dataset does not contain MT genes, expected to see a message
pbmc$mito <- getProportionMito(pbmc)

Run the code above in your browser using DataLab