Entering edit mode
4.3 years ago
mk
▴
310
I have two matrices called <object>@assays$RNA@counts and <object>@assays$RNA@data that are both real non-negative.
What is the difference between these?
Hi rpolicastro , I noticed that:
Shouldn't this be negative assuming that seurat still normalizes to zero-centered values?
The
ScaleDatafunction scales and centers the normalized data. I believe it goes to the@scale.dataslot though and not@data.oh, that's interesting, so would
<object>@assays$RNA@datajust be linear in some previously-computed cell-wise size-factors (i didn't know seurat did that so generally use scran to compute size factors separately)?if so then that matrix is very useful for some other stuff, too
NormalizeDatadivides each feature in a cell with the total UMI counts for that cell, multiples the number by 10000, and then natural log + 1 transforms the counts, so you don't expect any negative values.ScaleDatathen centers and scales those counts.