getProportionMito | R Documentation |
Calculates proportion of mitochondrial contribution based on raw or normalized data.
getProportionMito(object, use.norm = FALSE, mito.pattern = "^mt-")
object |
|
use.norm |
Whether to use cell normalized data in calculating contribution (default FALSE). |
mito.pattern |
Regex pattern for identifying mitochondrial genes. Default "^mt-" typically goes for mouse. May use "^MT-" for human. |
Named vector containing proportion of mitochondrial contribution for each cell.
ligerex <- createLiger(list(ctrl = ctrl, stim = stim))
# Expect a warning because the test data does not contain mito genes
ligerex@cell.data$mito <- getProportionMito(ligerex, mito.pattern = "^MT-")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.