API#
Main workflow#
Bin the cells along the distance to the anchor, fit and test every gene, and look at the results.
|
Assign each cell a bin along |
|
Configure the per-gene GAM, given |
|
Fit every per-gene model from |
|
Test whether the genes of a set change together between the conditions, with slides as replicates. |
|
Volcano plot of per-gene curve difference vs. significance. |
|
Plot the predicted expression curve (posterior mean +/- credible band) per gene, for both conditions. |
|
Neural organoid-like cultures with and without SHH induction (Legnini et al. 2023). |
Checking the settings#
|
Re-rank genes under every combination in |
|
Visualize a |
|
QC histogram of a per-gene p-value column; should look roughly uniform under the null. |
Single samples and clustering#
|
Fit the condition-free model for every gene, giving one expression profile per gene. |
|
Compare one gene's expression profile against every other gene's. |
|
Group genes by the shape of their fitted curves, with k-means on the spline coefficients. |
|
One curve plot per cluster, with the fitted curve of each gene overlaid in its own colour. |
Low-level functions#
The building blocks of the functions above, for custom models and tests.
|
Average expression of one or more genes in windows along |
|
Output of |
|
Build a (centered, intercept-free) B-spline design matrix for |
|
Interior knot positions (plus the |
|
Evaluate the spline basis of |
|
Level and slope of every gene in every slide, on the anchor range where the cells are. |
|
Test whether two condition curves are parallel, up to a shape difference |
|
Quadratic form |
|
Config bundle returned by |
|
What |