ComputeMitoContent: Compute the fraction/percentage of mitochondrial genes (mouse...

View source: R/ComputeMitoContent.R

ComputeMitoContentR Documentation

Compute the fraction/percentage of mitochondrial genes (mouse and human) in Seurat objects

Description

This function computes the mitochondrial content of cells in a Seurat object and adds it to the metadata.

Usage

ComputeMitoContent(object, name = "percent.mito", as.percent = TRUE)

Arguments

object

Seurat object. Must contain an RNA assay.

name

Name of the new metadata column created containing the fraction of mitochondrial transcripts (Default: percent.mito)

as.percent

Whether to report the result as a fraction (between 0 and 1) or percentage (between 0 and 100). Default: TRUE (percent).

Value

Seurat object with an additional metadata column containing mitochondrial fraction/percentage.

Examples

MySeuratObject <- ComputeMitoContent(MySeuratObject)

nbroguiere/burgertools documentation built on Jan. 30, 2024, 3:48 a.m.