powered by
Calculates proportion of mitochondrial contribution based on raw or normalized data.
getProportionMito(object, use.norm = FALSE, mito.pattern = "^mt-")
Named vector containing proportion of mitochondrial contribution for each cell.
liger object.
liger
Whether to use cell normalized data in calculating contribution (default FALSE).
Regex pattern for identifying mitochondrial genes. Default "^mt-" typically goes for mouse. May use "^MT-" for human.
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-")
Run the code above in your browser using DataLab