View source: R/Seurat.Utils.Visualization.R
PlotFilters | R Documentation |
This function plots the filtering thresholds and distributions for Seurat objects,
using four panels to highlight the relationship between gene- and UMI-counts, and the
ribosomal- and mitochondrial-content. !! Default arguments assume that p
is a list of
parameters, present in the global environment, with elements thr.lp.mito
, thr.hp.mito
,
thr.lp.ribo
, thr.hp.ribo
, thr.lp.nFeature_RNA
, and thr.hp.nFeature_RNA
.
PlotFilters(
ls.obj = ls.Seurat,
par.ls = p,
parentdir = OutDirOrig,
suffices = names(ls.obj),
filetype = ".png",
below.mito = par.ls$thr.lp.mito,
above.mito = par.ls$thr.hp.mito,
below.ribo = par.ls$thr.lp.ribo,
above.ribo = par.ls$thr.hp.ribo,
below.nFeature_RNA = if ("quantile.thr.lp.nFeature_RNA" %in% names(par.ls))
par.ls$quantile.thr.lp.nFeature_RNA else par.ls$thr.lp.nFeature_RNA,
above.nFeature_RNA = par.ls$thr.hp.nFeature_RNA,
subdir = FixPlotName("Filtering.plots", "mito", par.ls$thr.hp.mito, par.ls$thr.lp.mito,
"ribo", par.ls$thr.hp.ribo, par.ls$thr.lp.ribo, "nFeature", below.nFeature_RNA,
above.nFeature_RNA),
transparency = 0.25,
cex = 0.75,
theme.used = theme_bw(base_size = 18),
LabelDistFromTop = 200
)
ls.obj |
A list of Seurat objects to be analyzed. Default: |
parentdir |
The parent directory where the plots will be stored. Default: |
suffices |
Suffixes used in the output plot file names. Default: Names of the Seurat objects in |
filetype |
The file type of the output plot images. Default: |
below.mito |
Lower bound of mitochondrial content. Default: |
above.mito |
Upper bound of mitochondrial content. Default: |
below.ribo |
Lower bound of ribosomal content. Default: |
above.ribo |
Upper bound of ribosomal content. Default: |
below.nFeature_RNA |
Lower bound of RNA features. Default: |
above.nFeature_RNA |
Upper bound of RNA features. Default: |
subdir |
Subdirectory within |
transparency |
Point transparency on scatter plots. Default: 0.25. |
cex |
Size of points on scatter plots. Default: 0.75. |
theme.used |
A |
LabelDistFromTop |
Distance from top for label placement. Default: 200. |
ggplot
, labs
,
geom_point
## Not run:
if (interactive()) {
# !! Default arguments assume that `p` is a list of parameters, present in the global
# environment, with elements `thr.lp.mito`, `thr.hp.mito`, `thr.lp.ribo`, `thr.hp.ribo`,
# `thr.lp.nFeature_RNA`, and `thr.hp.nFeature_RNA`.
PlotFilters(ls.Seurat)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.