diffsvg.tl.replicate_summaries#
- diffsvg.tl.replicate_summaries(model_setup)#
Level and slope of every gene in every slide, on the anchor range where the cells are.
Per slide and gene, a line is fitted to the binned means by weighted least squares (weights: cells per bin) over the anchor support (see
fit_model). The level is the line’s value at the middle of the support, the slope its slope in units of the full[0, 1]anchor range.- Parameters:
- model_setup
setup_model’s output for data binned withsample(diffsvg.pp.bin_obs).
- Returns:
- level, slopepandas.DataFrame
Slides x genes.
- -condition (
Series) The condition (0 or 1, as encoded by
diffsvg.pp.bin_obs) of every slide.