regress_out | R Documentation |
Regresses out the effect of library size.
This function is a wrapper for regress_out
from the
NaiveDE Python package.
regress_out(counts, sample_info)
counts |
|
sample_info |
|
matrix
of normalized counts.
## Mock up a SpatialExperiment object wit 400 cells and 3 genes
set.seed(42)
mock <- mockSVG(20, 3, 1)
stabilized <- stabilize(mock$counts)
sample_info <- mock$coordinates
sample_info$total_counts <- colSums(mock$counts)
regressed <- regress_out(counts = stabilized, sample_info = sample_info)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.