calculate_mds_pca | R Documentation |
Performs dimensionality reduction using multi-dimensional scaling (MDS) or principal component analysis (PCA) on the sample level.
calculate_mds_pca(
se,
assay = 1,
method = "pca",
dist = "euclidean",
center = TRUE,
scale = FALSE
)
se |
|
assay |
Character or integer. Name or number of assay containing expression data to be used for dimensionality reduction. |
method |
Method to use: "pca" (default), "mds". |
dist |
Distance method to be used for MDS: see method argument in
|
center |
Logical. Should the data be centered by mean? (default: TRUE). |
scale |
Logical. Should the data be scaled by standard deviation? (default: FALSE). |
list with components scores (data.frame with components of PCA or MDS analysis) and var.explained (vector with explained variance; only for PCA).
data("se.gene")
## PCA
res.pca = calculate_mds_pca(se = se.gene,
method = "pca")
## MDS
res.mds = calculate_mds_pca(se = se.gene,
method = "mds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.