View source: R/scPagwas_Visualization.R
scPagwas_Visualization | R Documentation |
Visualize the scPagwas score in Umap and Tsne.
scPagwas_Visualization(
Single_data = NULL,
p_thre = 0.05,
output.dirs = "scPagwastest_output",
FigureType = "tsne",
width = 7,
height = 7,
title = "",
lowColor = "#000957",
highColor = "#EBE645",
size = 0.5,
do_plot = TRUE
)
Single_data |
Single_data in seruat format ,the save with scPagwas_main(), you'd better to run reduction of UMAP AND TSNE |
p_thre |
(numeric),default is 0.1, Threshold for pecent(<1) of Positive cells for level of scPagwas_score. |
output.dirs |
(character)default is NULL.the file folder name for save the figures.NULL means no folder is created, no pdf figure output. |
FigureType |
(character)"tsne" or "umap |
width |
(numeric)Figure width |
height |
(numeric)Figure height |
title |
(character)Figure title |
lowColor |
(character)Color for low scPagwas score |
highColor |
(character)Color for high scPagwas score |
size |
(numeric)size for scatters |
do_plot |
Whether to plot, logical |
figures for TRS score, gPas score,and p value reduction plot
Chunyu Deng
load(system.file("extdata", "Pagwas_data.RData", package = "scPagwas"))
scPagwas_Visualization(
Single_data = Pagwas_data,
p_thre = 0.05,
FigureType = "umap",
width = 7,
height = 7,
lowColor = "white",
highColor = "red",
output.dirs = "figure",
size = 0.5,
do_plot = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.