plotTSCANDimReduceFeatures | R Documentation |
A wrapper function which plots all cells or cells in chosen cluster. Each point is a cell colored by the expression of a feature of interest, the relevant edges of the MST are overlaid on top.
plotTSCANDimReduceFeatures(
inSCE,
features,
useReducedDim = "UMAP",
useAssay = "logcounts",
by = "rownames",
useCluster = NULL,
featureDisplay = metadata(inSCE)$featureDisplay,
combinePlot = c("all", "none")
)
inSCE |
Input SingleCellExperiment object. |
features |
Choose the feature of interest to explore the expression level on the trajectory. Required. |
useReducedDim |
A single character for the matrix of 2D embedding.
Should exist in |
useAssay |
A single character for the feature expression matrix. Should
exist in |
by |
Where should |
useCluster |
Choose specific clusters where gene expression needs to be
visualized. By default |
featureDisplay |
Specify the feature ID type to display. Users can set
default value with |
combinePlot |
Must be either |
A .ggplot
object of cell scatter plot, colored by the
expression of a gene of interest, with the layer of trajectory.
Yichen Wang
data("mouseBrainSubsetSCE", package = "singleCellTK")
mouseBrainSubsetSCE <- runTSCAN(inSCE = mouseBrainSubsetSCE,
useReducedDim = "PCA_logcounts")
plotTSCANDimReduceFeatures(inSCE = mouseBrainSubsetSCE,
features = "Tshz1",
useReducedDim = "TSNE_logcounts")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.