... | ... |
@@ -43,5 +43,6 @@ sce <- runSeuratNormalizeData(sce, useAssay = "counts") |
43 | 43 |
sce <- runSeuratFindHVG(sce, useAssay = "counts") |
44 | 44 |
sce <- runSeuratScaleData(sce, useAssay = "counts") |
45 | 45 |
sce <- runSeuratPCA(sce, useAssay = "counts") |
46 |
-plotSeuratReduction(sce, useReductionPlot = "pca")} |
|
46 |
+plotSeuratReduction(sce, useReduction = "pca") |
|
47 |
+} |
|
47 | 48 |
} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,47 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/seuratFunctions.R |
|
3 |
+\name{plotSeuratReduction} |
|
4 |
+\alias{plotSeuratReduction} |
|
5 |
+\title{plotSeuratReduction |
|
6 |
+Plots the selected dimensionality reduction method} |
|
7 |
+\usage{ |
|
8 |
+plotSeuratReduction( |
|
9 |
+ inSCE, |
|
10 |
+ useReduction = c("pca", "ica", "tsne", "umap"), |
|
11 |
+ showLegend = FALSE, |
|
12 |
+ groupBy = NULL, |
|
13 |
+ splitBy = NULL |
|
14 |
+) |
|
15 |
+} |
|
16 |
+\arguments{ |
|
17 |
+\item{inSCE}{(sce) object which has the selected dimensionality reduction |
|
18 |
+algorithm already computed and stored} |
|
19 |
+ |
|
20 |
+\item{useReduction}{Dimentionality reduction to plot. One of "pca", "ica", |
|
21 |
+"tsne", or "umap". Default \code{"umap"}.} |
|
22 |
+ |
|
23 |
+\item{showLegend}{Select if legends and labels should be shown on the output |
|
24 |
+plot or not. Either "TRUE" or "FALSE". Default \code{FALSE}.} |
|
25 |
+ |
|
26 |
+\item{groupBy}{Specify a colData column name that be used for grouping. |
|
27 |
+Default is \code{NULL}.} |
|
28 |
+ |
|
29 |
+\item{splitBy}{Specify a colData column name that be used for splitting the |
|
30 |
+output plot. Default is \code{NULL}.} |
|
31 |
+} |
|
32 |
+\value{ |
|
33 |
+plot object |
|
34 |
+} |
|
35 |
+\description{ |
|
36 |
+plotSeuratReduction |
|
37 |
+Plots the selected dimensionality reduction method |
|
38 |
+} |
|
39 |
+\examples{ |
|
40 |
+data(scExample, package = "singleCellTK") |
|
41 |
+\dontrun{ |
|
42 |
+sce <- runSeuratNormalizeData(sce, useAssay = "counts") |
|
43 |
+sce <- runSeuratFindHVG(sce, useAssay = "counts") |
|
44 |
+sce <- runSeuratScaleData(sce, useAssay = "counts") |
|
45 |
+sce <- runSeuratPCA(sce, useAssay = "counts") |
|
46 |
+plotSeuratReduction(sce, useReductionPlot = "pca")} |
|
47 |
+} |