getProportionMito {rliger} | R Documentation |
Calculate proportion mitochondrial contribution
Description
Calculates proportion of mitochondrial contribution based on raw or normalized data.
Usage
getProportionMito(object, use.norm = FALSE, pattern = "^mt-")
Arguments
object |
|
use.norm |
Deprecated Whether to use cell normalized data in
calculating contribution. Default |
pattern |
Regex pattern for identifying mitochondrial genes. Default
|
Value
Named vector containing proportion of mitochondrial contribution for each cell.
Note
getProportionMito
will be deprecated because
runGeneralQC
generally covers and expands its use case.
Examples
# Example dataset does not contain MT genes, expected to see a message
pbmc$mito <- getProportionMito(pbmc)
[Package rliger version 2.0.1 Index]