calculate_mt_exprs: Calculate mitochondrial gene expression

Description Usage Arguments Value Examples

View source: R/calculate_mt_exprs.R

Description

calculate_mt_exprs() calculates the expression of mitochondrial genes for a monocle CellDataSet object.

Usage

1
calculate_mt_exprs(cds, genome = "mouse", return_prop = T)

Arguments

cds

monocle CellDataSet object

genome

genome to which transcripts are aligned to. Accepts either "mouse" or "human".

return_prop

logical; whether to return the value of mitochondrial transcripts as a proportion of total transcripts for each cell; resulting output will be the input CDS with the values of mt_RNAs and mt_prop attached to the corresponding pData. If FALSE, will only return the absolute number of transcripts per cell as a vector. Defaults to TRUE.

Value

A vector or a cds (see above)

Examples

1

jacobheng/cellwrangler documentation built on Aug. 12, 2019, 6:49 a.m.