forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JackStrawPlot.Rd
48 lines (42 loc) · 1.52 KB
/
JackStrawPlot.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting.R
\name{JackStrawPlot}
\alias{JackStrawPlot}
\title{JackStraw Plot}
\usage{
JackStrawPlot(object, PCs = 1:5, nCol = 3, score.thresh = 1e-05,
plot.x.lim = 0.1, plot.y.lim = 0.3)
}
\arguments{
\item{object}{Seurat plot}
\item{PCs}{Which PCs to examine}
\item{nCol}{Number of columns}
\item{score.thresh}{Threshold to use for the proportion test of PC
significance (see Details)}
\item{plot.x.lim}{X-axis maximum on each QQ plot.}
\item{plot.y.lim}{Y-axis maximum on each QQ plot.}
}
\value{
Returns a Seurat object where object@dr$pca@[email protected]
represents p-values for each PC and object@dr$pca@misc$jackstraw.plot
stores the ggplot2 plot.
}
\description{
Plots the results of the JackStraw analysis for PCA significance. For each
PC, plots a QQ-plot comparing the distribution of p-values for all genes
across each PC, compared with a uniform distribution. Also determines a
p-value for the overall significance of each PC (see Details).
}
\details{
Significant PCs should show a p-value distribution (black curve) that is
strongly skewed to the left compared to the null distribution (dashed line)
The p-value for each PC is based on a proportion test comparing the number
of genes with a p-value below a particular threshold (score.thresh), compared with the
proportion of genes expected under a uniform distribution of p-values.
}
\examples{
JackStrawPlot(object = pbmc_small)
}
\author{
Thanks to Omri Wurtzel for integrating with ggplot
}