umap | R Documentation |
Create a umap plot; wrapper function for umap package plus custom plotting
umap(
se_object,
assay_of_interest,
batch,
neighbors = 15,
min_distance = 0.1,
spread = 1,
exploratory = FALSE
)
se_object |
se_object; containing data of interest |
assay_of_interest |
string; the assay in the se_object to plot |
batch |
string; representing batch |
neighbors |
integer; number of nearest neighbors, default 15 per umap; lower values prioritize local structure, higher values will represent bigger picture but lose finer details |
min_distance |
numeric; how close points appear in final layout; higher values puts less emphasis on global structure; must be less than spread |
spread |
numeric; dispersion of points in umap |
exploratory |
Boolean; default is FALSE, if True, a 5x5 grid with k = 15, 25, 50, 100 and min_distance = 0.1, .2, .5, .75, .99 will be plotted |
umap plot
library(scran)
se <- mockSCE()
se$Treatment <- as.factor(se$Treatment)
se$Mutation_Status <- as.factor(se$Mutation_Status)
umap_plot <- BatchQC::umap(se_object = se, assay_of_interest = "counts",
batch = "Treatment")
umap_plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.