plotTSCANPseudotimeGenes | R Documentation |
A wrapper function which visualizes outputs from the
runTSCANDEG
function. Plots the genes that increase or decrease
in expression with increasing pseudotime along the path in the MST.
runTSCANDEG
has to be run in advance with using the same
pathIndex
of interest.
plotTSCANPseudotimeGenes(
inSCE,
pathIndex,
direction = c("increasing", "decreasing"),
topN = 10,
useAssay = NULL,
featureDisplay = metadata(inSCE)$featureDisplay
)
inSCE |
Input SingleCellExperiment object. |
pathIndex |
Path index for which the pseudotime values should be used.
Should have being used in |
direction |
Should we show features with expression increasing or
decreeasing along the increase in TSCAN pseudotime? Choices are
|
topN |
An integer. Only to plot this number of top genes that are increasing/decreasing in expression with increasing pseudotime along the path in the MST. Default 10 |
useAssay |
A single character to specify a feature expression matrix in
|
featureDisplay |
Specify the feature ID type to display. Users can set
default value with |
A .ggplot
object with the facets of the top genes. Expression
on y-axis, pseudotime on x-axis.
Nida Pervaiz
data("mouseBrainSubsetSCE", package = "singleCellTK")
mouseBrainSubsetSCE <- runTSCAN(inSCE = mouseBrainSubsetSCE,
useReducedDim = "PCA_logcounts")
terminalNodes <- listTSCANTerminalNodes(mouseBrainSubsetSCE)
mouseBrainSubsetSCE <- runTSCANDEG(inSCE = mouseBrainSubsetSCE,
pathIndex = terminalNodes[1])
plotTSCANPseudotimeGenes(mouseBrainSubsetSCE,
pathIndex = terminalNodes[1],
useAssay = "logcounts")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.