Thank you for visiting menuraR, an application designed to compare multiple Non-linear Dimension Reduction (NLDR) layouts and assist in selecting the most reasonable one.
If you already have high-dimensional data, metadata, and NLDR results prepared, you can upload them directly.
✨ Alternatively, if you don’t have pre-computed metadata or NLDR results, you can use menuraR to generate tSNE and UMAP layouts with default hyperparameter settings after uploading your high-dimensional data. You can also explore the app with the provided example datasets:
C-shaped cluster (synthetic example)
PBMC (biological single-cell dataset).
👉 If you want more NLDR layouts than the ones you uploaded, you can use “Add layout” to generate additional tSNE and/or UMAP layouts with your chosen hyperparameter settings.
File structure
The data is organized into separate CSV files: one for high-dimensional data, one for metadata, and another for non-linear dimensionality reductions (NLDR).
High-Dimensional Data
The high-dimensional data file must contain a unique “ID” column and data columns named “x1”, “x2”, etc.
x1
x2
x3
x4
ID
1.99
-0.194
0.0189
0.981
1
0.791
-0.848
0.470
0.530
2
0.785
-0.950
0.687
0.313
3
0.572
-0.0309
0.000477
1.00
4
1.00
-0.529
0.152
0.848
5
0.379
-0.00676
0.0000229
1.00
6
Metadata
The metadata file should contain “name_of_the_layout” as an integer, “nldr_method” as tSNE, UMAP etc., and “hyper_parameters” followed by parameter name, then “=” to the value.
The NLDR results file should include the “ID” column (to link back to the high-dimensional data), the two NLDR components (“emb1” and “emb2”) for each method followed by the method ID (e.g., 1_emb1, 1_emb2).
1_emb1
1_emb2
2_emb1
2_emb2
3_emb1
3_emb2
4_emb1
4_emb2
5_emb1
5_emb2
ID
3.39
-7.26
-15.3
2.89
-0.00564
0.0115
-51.8
-23.2
-8.89
1
22.5
-0.181
-10.3
-1.93
-0.0204
-0.00855
-59.8
1.97
0.0766
2
25.6
-2.59
-10.4
-3.44
-0.0180
-0.00502
-56.3
5.71
-0.228
3
12.4
16.6
-6.37
2.56
-0.00314
-0.0171
-81.0
-7.28
5.63
4
14.1
4.33
-10.2
1.79
-0.0236
-0.000476
-65.3
-9.05
-0.559
5
14.9
18.5
-5.85
2.10
-0.00235
-0.0182
-83.1
-2.61
7.08
6
Example R Code for Data Preparation
Here are code snippets demonstrating how to prepare your data from a Seurat object into the required format for dimarence.
Obtain PCA Data
library(Seurat) # Assuming Seurat is installed and loadedlibrary(tidyverse) # For tibble and mutatelibrary(here) # For robust file paths# Load your Seurat objectmouse_liver_obj <-read_rds(here::here("Tutorials/mouse_liver_seurat_obj.rds"))# Extract PCA embeddings, select top 10 components, rename, and add IDpca_df_selected <- mouse_liver_obj@reductions$pca@cell.embeddings[, 1:10] |>as_tibble() |>setNames(paste0("x", 1:10)) |>mutate(ID =row_number())pca_df_selected
library(Seurat) # Assuming Seurat is installed and loadedlibrary(tidyverse) # For tibble and mutate# Extract UMAP embeddings, rename, and add IDumap_df <- mouse_liver_obj@reductions$umap@cell.embeddings |>as_tibble() |>setNames(c("1_emb1", "1_emb2")) |># Adjust column names based on your layout IDmutate(ID =row_number())umap_df