This page describes how the per-variety UMAP maps on the interactive explorer were built, and lists every parameter behind them.
Each map has one point per grape variety (identified by its VIVC prime name), not one point per sample. A variety’s position is obtained by averaging its yearly replicates — after batch correction and scaling — and re-embedding those averaged positions with UMAP. Two maps are shown, one per ionization mode (Negative, Positive), computed independently from each other.
Before averaging, each yearly replicate is compared to the other replicates of its own accession (only accessions with three or more replicates are checked). A replicate is excluded from its variety’s average if it sits more than 2 times farther from the other replicates than those other replicates normally sit from each other — a candidate for a mislabelling or acquisition issue, not a biological outlier worth keeping in the average.
The underlying LC-MS features were acquired across four years, each analysed in its own batch. Before the per-variety averaging described above, features are batch-corrected per acquisition year using the common QC sample run throughout the study.
Both maps are recomputed with uwot::umap(), using the
same parameters for every run:
| Parameter | Value |
|---|---|
n_neighbors |
15 |
min_dist |
0.1 |
metric |
euclidean |
seed |
6742 |
n_threads |
1 |
Package version: uwot 0.2.4.