Wrapper function for Giotto dimension reduction methods for easier coding.
reduceDims(
gobject,
method = c("pca", "nmf", "umap", "tsne"),
projection = FALSE,
toplevel = 1L,
...
)
`giotto` object with attached dimension reduction
g <- GiottoData::loadGiottoMini("vis")
#> Error in match.arg(dataset, choices = c(names(mini_gobject_manifest))): 'arg' should be one of “visium”, “visium_multisample”, “vizgen”, “cosmx”, “seqfish”, “starmap”, “spatialgenomics”
x <- reduceDims(g, "tsne", spat_unit = "cell")
#> Error: object 'g' not found
x <- reduceDims(x, "umap", projection = TRUE)
#> Error: object 'x' not found
x <- reduceDims(x, method = "nmf")
#> Error: object 'x' not found