plotTSNE: Plot t-SNE plot on dimensionality reduction data run from...

Description Usage Arguments Value Examples

View source: R/plotTSNE.R

Description

Plot t-SNE plot on dimensionality reduction data run from t-SNE method.

Usage

1
2
3
4
5
6
7
8
plotTSNE(
  inSCE,
  colorBy = "No Color",
  shape = "No Shape",
  reducedDimName = "TSNE",
  runTSNE = FALSE,
  useAssay = "logcounts"
)

Arguments

inSCE

Input SingleCellExperiment object.

colorBy

color by condition.

shape

add shape to each distinct label.

reducedDimName

a name to store the results of the dimension reduction coordinates obtained from this method. This is stored in the SingleCellExperiment object in the reducedDims slot. Required.

runTSNE

Run t-SNE if the reducedDimName does not exist. the Default is FALSE.

useAssay

Indicate which assay to use. The default is "logcounts".

Value

A t-SNE plot

Examples

1
2
3
data("mouseBrainSubsetSCE")
plotTSNE(mouseBrainSubsetSCE, colorBy = "level1class",
         reducedDimName = "TSNE_counts")

singleCellTK documentation built on Nov. 8, 2020, 5:21 p.m.