Description Usage Arguments Details Value
This takes a group of genes and cells, averages gene expression in groups of cells (determined using a moving window through pseudotime), and then fits either a linear, single sigmoid, or double sigmoid ("impulse") model to describe the expression of each gene. The results are returned for use in geneCascadeImpulsePlots
to visualize the fits or geneCascadeHeatmap
to plot gene expression cascades in heatmap format.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | geneCascadeProcess(
object,
pseudotime,
cells,
genes,
moving.window = 3,
cells.per.window = NULL,
pseudotime.per.window = NULL,
scale.data = T,
k = 50,
pt.windows = NULL,
interpolate = NULL,
pulse.only = T,
verbose = T,
verbose.genes = F
)
|
object |
An URD object |
pseudotime |
(Character) Name of pseudotime (i.e. a column name of |
cells |
(Character vector) Cells to include |
genes |
(Character vector) Genes to include |
moving.window |
(Numeric) Number of bins to use per window |
cells.per.window |
(Numeric or |
pseudotime.per.window |
(Numeric or |
scale.data |
(Logical) If |
k |
(Numeric) Number of sets of initial conditions to try for fitting expression of each gene |
pt.windows |
(List or |
interpolate |
(Numeric or NULL) If low number of data points, can interpolate them linearly to this number of points for choosing potential starting conditions. Default ( |
pulse.only |
(Logical) If |
verbose |
(Logical) Print major status updates? |
verbose.genes |
(Logical) Report fitting of each gene? |
Thanks to Yiqun Wang for considerable improvements to the impulse fitting functions.
Named list: "pt.windows" ; "mean.expression" Mean expression of each gene in each pseudotime window; "scaled.expression" Scaled mean expression of each gene in each pseudotime window, if scale.data=T
, otherwise same as mean.expression
; "impulse.fits" List of fit parameters for each gene; "timing" (data.frame) of earliest onset time and latest offset time for each gene.
(Named List):
pt.windows
: (List) Character vectors of cell IDs of cells in each window, named by either the mean, min, or max pseudotime of those cells (depending on name.by
)
pt.info
: (data.frame) Mean, min, max, and range of pseudotime in each window of cells.
mean.expression
: (data.frame) Mean expression of each gene in each pseudotime window
scaled.expression
: (data.frame) Mean expression of each gene in each pseudotime window, scaled to the maximum observed expression
mean.smooth
: (data.frame) Value of fit curve for each pseudotime window (i.e. to predict value of mean.expression)
scaled.smooth
: (data.frame) Value of fit curve for each pseudotime window, scaled to max expression (i.e. to predict value of scaled.expression)
impulse.fits
: (List) Parameters of fit for each gene. See impulseFit
.
timing
: (data.frame) Earliest onset and latest offset pseudotime determined for each gene.
method
: (Character) Identify fit method ("impulse")
fit.scaled
: (Logical) Was data scaled before fitting?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.