DefaultReduction | R Documentation |
Find the default reduction name in a Seurat object.
DefaultReduction(srt, pattern = NULL, min_dim = 2, max_distance = 0.1)
srt |
A Seurat object. |
pattern |
Character string containing a regular expression to search for. |
min_dim |
Minimum dimension threshold. |
max_distance |
Maximum distance allowed for a match. |
Default reduction name.
data("pancreas_sub")
names(pancreas_sub@reductions)
DefaultReduction(pancreas_sub)
# Searches for matches to "pca"
DefaultReduction(pancreas_sub, pattern = "pca")
# Searches for approximate matches to "pc"
DefaultReduction(pancreas_sub, pattern = "pc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.