Entering edit mode
4.4 years ago
jrleary
▴
210
I'm converting a SingleCellExperiment
object to a Seurat
object, and I'd like to be able to regress out the effect of % mitochondrial DNA when running SCTransform
for normalization & detection of highly variable genes. However, running as.Seurat
does not add the necessary nCount_RNA
or nFeature_RNA
metadata to the new Seurat
object. Is there a non-exported function in Seurat
that I could use to add this information?
As quickly as I asked this, I figured it out. The hidden function
CalcN
performs this: