Learn R Programming

rliger (version 1.0.0)

getProportionMito: Calculate proportion mitochondrial contribution

Description

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

Usage

getProportionMito(object, use.norm = FALSE)

Arguments

object

liger object.

use.norm

Whether to use cell normalized data in calculating contribution (default FALSE).

Value

Named vector containing proportion of mitochondrial contribution for each cell.

Examples

Run this code
# NOT RUN {
# ligerex (liger object), factorization complete
ligerex@cell.data[["percent_mito"]] <- getProportionMito(ligerex)
# }

Run the code above in your browser using DataLab