Dimensionality reduction through PCA
A multi-assay experiment object
The taxon level used for organisms
A condition to color data points by e.g. "AGE"
A condition to shape data points by e.g. "SEX"
Component on the x-axis e.g. 1
Component on the y-axis e.g. 2
Component on the z-axis e.g. 3
Number of nearest neighbors
Distance function e.g. c("euclidean", "manhattan")
Number of iterations
Initial embedding using eigenvector e.g c("spectral", "random")
Determines how close points appear in the final layout
Datatype to use e.g. c("logcpm", "relabu", "counts")
A list with a plotly object and summary table
data_dir <- system.file("extdata/MAE.rds", package = "animalcules")
toy_data <- readRDS(data_dir)
result <- dimred_umap(toy_data,
tax_level = "genus",
color = "AGE",
shape = "DISEASE",
cx = 1,
cy = 2,
datatype = "logcpm"
)
result$plot