cascade | R Documentation |
Finds and orders genes peaking in expression along a lineage. The function first assesses which genes increase significantly in expression, somewhere along a lineage, by testing pointwise first-derivatives against a threshold. For genes found to be significantly increasing, we look for its expression peak.
cascade(models, ...)
## S4 method for signature 'SingleCellExperiment'
cascade(
models,
lineage = 1,
genes = rownames(models),
epsilon = 1e-06,
nPoints = 100,
derivativeThreshold = 0.1,
derPvalThreshold = 0.05/nPoints,
plotHeatmap = TRUE,
clusterHeatmap = FALSE
)
models |
The fitted GAMs. A |
... |
parameters including: |
lineage |
A positive integer, defining the lineage you would like to
construct the cascade for. Defaults to |
genes |
A character vector listing the genes from |
epsilon |
The distortion used for finite differencing. Defaults to |
nPoints |
The first derivatives are constructed pointwise on an equally-spaced
grid. The |
derivativeThreshold |
The first derivative threshold tested against when
calculating test statistics for assessing significant increase. Defaults to |
derPvalThreshold |
The p-value threshold used for determining significance of the
first derivative test statistic. Defaults to |
plotHeatmap |
Logical. Should a heatmap be plotted? Defaults to |
clusterHeatmap |
Logical. Should the heatmap cluster the genes? Defaults to |
First derivatives are estimated using finite differencing.
Only the genes with a significant expression increase will be returned. For these genes, a list is returned
set.seed(8)
data(crv, package="tradeSeq")
data(countMatrix, package="tradeSeq")
sce <- fitGAM(counts = as.matrix(countMatrix),
sds = crv,
nknots = 5)
# construct cascalde for lineage 1
cas <- cascade(sce)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.