regress_out {spatialDE} | 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.
set.seed(42) mock <- mockSVG(10, 1000, 10) stabilized <- stabilize(mock$counts) sample_info <- mock$coordinates sample_info$total_counts <- colSums(mock$counts) regressed <- regress_out(counts = stabilized, sample_info = sample_info)