Subir archivos a "/"
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Digital Object Identifiers (DOIs) of Cited Articles
|
||||
|
||||
- MALDI imaging mass spectrometry: statistical data analysis and current computational challenges (2012) — <https://doi.org/10.1186/1471-2105-13-S16-S11>
|
||||
- Cardinal: an R package for statistical analysis of mass spectrometry-based imaging experiments (2015) — <https://doi.org/10.1093/bioinformatics/btv146>
|
||||
- Identification of Plant Compounds with Mass Spectrometry Imaging (MSI) (2024) — <https://doi.org/10.3390/metabo14080419>
|
||||
- MALDIquant: a versatile R package for the analysis of mass spectrometry data (2012) — <https://doi.org/10.1093/bioinformatics/bts447>
|
||||
- Balancing sufficiency and impact in reporting standards for mass spectrometry imaging experiments (2018) — <https://doi.org/10.1093/gigascience/giy102>
|
||||
- Low-Temperature Plasma Probe for Ambient Desorption Ionization (2008) — <https://doi.org/10.1021/ac801641a>
|
||||
- Spherical k-Means Clustering (2012) — <https://doi.org/10.18637/jss.v050.i10>
|
||||
- DeepION: A Deep Learning-Based Framework for Mass Spectrometry Imaging Data Analysis (2021) — <https://doi.org/10.48550/ARXIV.2106.01582>
|
||||
- Gradient Accumulation for Large Batch Training (2025) — <https://huggingface.co/docs/transformers/training#gradient-accumulation>
|
||||
- REFORMS: Consensus-based Recommendations for Machine-learning-based Science (2024) — <https://doi.org/10.1126/sciadv.adk3452>
|
||||
- Low-temperature plasma (LTP) jets for mass spectrometry (MS): Ion processes, instrumental set-ups, and application examples (2017) — <https://doi.org/10.1016/j.trac.2017.01.013>
|
||||
- Visualizing structure and transitions in high-dimensional biological data (2019) — <https://doi.org/10.1038/s41587-019-0336-3>
|
||||
- Elucidating the Distribution of Plant Metabolites from Native Tissues with Laser Desorption Low-Temperature Plasma Mass Spectrometry Imaging (2019) — <https://doi.org/10.1021/acs.analchem.8b04406>
|
||||
- Benchmark datasets for 3D MALDI- and DESI-imaging mass spectrometry (2015) — <https://doi.org/10.1186/s13742-015-0059-4>
|
||||
- PyTorch: An Imperative Style, High-Performance Deep Learning Library (2019) — <https://doi.org/10.48550/ARXIV.1912.01703>
|
||||
- Laser Desorption Low-Temperature Plasma Mass Spectrometry Imaging (LD-LTP MSI) of San Pedro cactus (2020) — <https://doi.org/10.5281/zenodo.3625054>
|
||||
- Histology by Mass Spectrometry: Label-Free Tissue Characterization Obtained from High-Accuracy Bioanalytical Imaging (2010) — <https://doi.org/10.1002/anie.200905559>
|
||||
- ProteomeXchange Dataset PXD001283 (2014) — <http://proteomecentral.proteomexchange.org/cgi/GetDataset?ID=PXD001283>
|
||||
- Contrast optimization of mass spectrometry imaging (MSI) data visualization by threshold intensity quantization (TrIQ) (2021) — <https://doi.org/10.7717/peerj-cs.585>
|
||||
- Open LabBot and RmsiGUI: Community development kit for sampling automation and ambient imaging (2020) — <https://doi.org/10.1016/j.microc.2019.104343>
|
||||
- Technical Note: mzML and imzML Libraries for Processing Mass Spectrometry Data with the High-Performance Programming Language Julia (2024) — <https://doi.org/10.1021/acs.analchem.3c05853>
|
||||
- Tropane alkaloid biosynthesis in Datura innoxia Mill. roots and their differential transport to shoots (2021) — <https://doi.org/10.1016/j.phytol.2021.04.012>
|
||||
- imzML — A common data format for the flexible exchange and processing of mass spectrometry imaging data (2012) — <https://doi.org/10.1016/j.jprot.2012.07.026>
|
||||
- MSInet: A Self-Supervised CNN Framework Integrating Global and Local Context for Robust Mass Spectrometry Imaging Segmentation (2025) — <https://doi.org/10.1021/acs.analchem.5c04885>
|
||||
- JuliaMSI: A high-performance graphical platform for mass spectrometry imaging data analysis (2025) — <https://doi.org/10.1016/j.aca.2025.344613>
|
||||
- EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks (2019) — <https://doi.org/10.48550/ARXIV.1905.11946>
|
||||
- SMART: A data reporting standard for mass spectrometry imaging (2023) — <https://doi.org/10.1002/jms.4904>
|
||||
- Alkaloid Biosynthesis: Metabolism and Trafficking (2008) — <https://doi.org/10.1146/annurev.arplant.59.032607.092730>
|
||||
@@ -131,23 +131,25 @@ The learned embeddings systematically outperform a PCA baseline on the same feat
|
||||
|
||||
**Figure 1.** Equalized three-way benchmark of JuliaMSI vs Cardinal (R) and MALDIquant (R) preprocessing under an identical per-stage workload (load + average spectrum + peaks + one ion slice at each dataset's canonical reference *m/z*, tolerance 0.1 Da) across seven public datasets ordered by file size (lightest to heaviest). (A) Slice-generation throughput (slices per second, log scale): the Julia engine generates ion slices one to two orders of magnitude faster than Cardinal on every dataset (54- to 79,949-fold) and materially faster than MALDIquant, a difference that dominates the cost of exporting a full ion corpus. (B) Peak load resident RAM (VmRSS, MB, log scale): the memory-mapped lazy loader keeps the working set at 7--84 MB — below Cardinal's ~120 MB on every dataset and far below MALDIquant (up to 4.0 GB). Red X markers indicate the datasets that MALDIquant could not process (mouse liver and mouse stomach), which exhausted the 22 GB reference machine.
|
||||
|
||||

|
||||
{width=16cm}
|
||||
|
||||
**Figure 2.** Clustering validation of the two *Datura innoxia* demonstration datasets. For each dataset, the SimCLR latent space (see the section "Self-Supervised Representation Learning (Python)") was evaluated over a K-sweep (k = 2--20) with four panels: Elbow method (inertia), Silhouette score, Davies-Bouldin index, and Calinski-Harabasz index. The joint Davies-Bouldin/Calinski-Harabasz optimum is adopted as the number of metabolic clusters, since the Silhouette optimum of k = 2 always reproduces the trivial tissue-versus-background split. This selects k = 5 for the leaf (Davies-Bouldin 0.9124; Calinski-Harabasz 1304.29) and k = 3 for the root (0.8518; 868.21), reflecting the distinct metabolic architecture of the two tissues.
|
||||
**Figure 2.** Clustering validation of the two *Datura innoxia* demonstration datasets. For each dataset, the SimCLR latent space (see the section "Self-Supervised Representation Learning (Python)") was evaluated over a K-sweep (k = 2--20) with four panels: Elbow method (inertia), Silhouette score, Davies-Bouldin index, and Calinski-Harabasz index. The joint Davies-Bouldin/Calinski-Harabasz optimum is adopted as the number of metabolic clusters, since the Silhouette optimum of k = 2 always reproduces the trivial tissue-versus-background split. This selects k = 5 for the leaf (Davies-Bouldin 0.9124; Calinski-Harabasz 1304.29) and k = 3 for the root (0.8518; 868.21), reflecting the distinct metabolic architecture of the two tissues. To the right of each panel, representative ion images (viridis) illustrate the tropane alkaloid chemistry driving the segmentation: for the leaf, scopolamine (*m/z* 304.17), atropine/hyoscyamine (*m/z* 290.08), and 6-hydroxyhyoscyamine (*m/z* 306.25) co-localize in Cluster 2, while the precursors tropinone (*m/z* 140.17), tropine (*m/z* 142.08), and cuscohygrine (*m/z* 225.92) occupy Clusters 0, 3, and 4, respectively; for the root, tropinone and tropine fall in Cluster 0 and cuscohygrine and atropine/hyoscyamine in Cluster 1, with scopolamine absent from the root ion corpus (see the section "Case Study: *Datura innoxia* Segmentation").
|
||||
|
||||

|
||||
{width=16cm}
|
||||
|
||||
## Multi-Dataset Unsupervised Segmentation
|
||||
|
||||
The segmentations of the two most architecturally demanding benchmark tissues are shown in Figure 3: the learned 128-dimensional embeddings projected with t-SNE and colored by the K-Means assignment at each dataset's adopted K, alongside individual representative ion images for the four largest clusters of each tissue. For both the mouse bladder (AP-SMALDI) and the human colon (DESI), the workflow recovers spatially coherent, interpretable metabolic domains without any manual annotation or dataset-specific parameter tuning, resolving 20 domains per tissue. The t-SNE projections consistently display the continuous, gradient-like geometry discussed below, which reflects the underlying anatomical continuum rather than clustering failure.
|
||||
The segmentations of the two most architecturally demanding benchmark tissues are shown in Figure 3: the learned 128-dimensional embeddings projected with t-SNE and colored by the K-Means assignment at each dataset's adopted K, alongside biologically interpretable ion images from distinct metabolic domains of each tissue. For both the mouse bladder (AP-SMALDI) and the human colon (DESI), the workflow recovers spatially coherent, interpretable metabolic domains without any manual annotation or dataset-specific parameter tuning, resolving 20 domains per tissue. The t-SNE projections display the clearly separated, tissue-specific cluster geometries discussed below — circular arrangements for the bladder and colon — confirming that the recovered clusters are discrete metabolic compartments rather than arbitrary bands of a continuum.
|
||||
|
||||
**Figure 3.** Unsupervised segmentation of the two fine-grained benchmark tissues, the mouse bladder (AP-SMALDI) and the human colon (DESI). For each dataset, the left panel is the t-SNE projection of the SimCLR latent space colored by K-Means cluster assignment at the adopted K; the right panels show individual representative ion images (viridis, *m/z* annotated) from the four largest clusters of each tissue, illustrating the distinct spatial morphology of each recovered metabolic domain. The workflow resolves the histologically complex architecture of both tissues — 20 metabolic domains for each — with the same Julia preprocessing, the same SimCLR encoder, and the same K-selection logic, requiring no manual tuning.
|
||||
**Figure 3.** Unsupervised segmentation of the two fine-grained benchmark tissues, the mouse bladder (AP-SMALDI) and the human colon (DESI). For each dataset, the left panel is the t-SNE projection of the SimCLR latent space colored by K-Means cluster assignment at the adopted K; the right panels show biologically interpretable ion images (viridis, putative compound and adduct) from four distinct metabolic domains of each tissue — the sphingomyelin SM(34:1) (d18:1/16:0, [M+H]+ and [M+Na]+), the phosphatidylcholine PC(34:1), and the reference phospholipid for the bladder; the phosphatidylinositols PI(38:4) (18:0/20:4) and PI(36:2), the phosphatidylglycerol PG(34:1), and the phosphatidylserine PS(36:1) (18:0/18:1) for the colon — illustrating the distinct spatial morphology of each recovered metabolic domain. The workflow resolves the histologically complex architecture of both tissues — 20 metabolic domains for each — with the same Julia preprocessing, the same SimCLR encoder, and the same K-selection logic, requiring no manual tuning.
|
||||
|
||||

|
||||
{width=16cm}
|
||||
|
||||
### Interpreting the Continuous Latent Manifold
|
||||
The recovered domains are not only computationally validated but also biologically interpretable in every benchmark tissue, without any tissue-specific tuning. In the San Pedro cactus stem (*Echinopsis pachanoi*), the joint Davies-Bouldin/Calinski-Harabasz optimum selects k = 2, partitioning the 775-ion corpus into two metabolic domains (Clusters 0 and 1, with 358 and 417 ions, respectively). The cactus stem is anatomically organized as a two-compartment structure — the photosynthetically active cortex with the underlying vascular system and the inner water-storage pith — and the mescaline region (m/z ≈ 212.1) falls in Cluster 0, consistent with the star-like mescaline distribution around the vascular bundles originally reported for this specimen [@robert_winkler_laser_2020; @moreno-pedraza_elucidating_2019]. In the mouse liver (MALDI-TOF), the k = 7--8 optimum resolves the lobular architecture of hepatic zonation, in which periportal and pericentral hepatocytes differ in their metabolic programs, and the reference ion at m/z 796.18 is placed in Cluster 2. The mouse stomach (MALDI-TOF, DHB matrix) is segmented into k = 12 domains, consistent with the regional organization of the gastric mucosa — forestomach, corpus, and antrum — with the reference ion m/z 804.3 distributed between Clusters 7 and 10. For the two high-resolution benchmark specimens, the workflow resolves 20 domains each. In the mouse urinary bladder (AP-SMALDI [@rompp_histology_2010; @rompp_proteomexchange_2014]), the domains follow the layered histology of the bladder wall (urothelium, lamina propria, detrusor muscle), and the reference phospholipid at m/z 716.05 falls in Cluster 4. In the human colorectal adenocarcinoma (DESI [@oetjen_benchmark_2015]), the 20 domains recover the molecular heterogeneity of the tumor and its surrounding stroma, and the anion at m/z 885.55 — consistent with the glycerophospholipid PI(18:0/20:4) signature commonly observed in malignant colon epithelium — is confined to Cluster 2.
|
||||
|
||||
Reviewers from a computer vision background may expect an optimal unsupervised result to yield discrete, well-separated "blobs" in the t-SNE projection. The continuous, connected geometry observed in our manifold—resembling a smooth curve or "S-shape"—is not a sign of clustering failure; it is, in fact, the mathematically correct and expected projection of a continuous biological gradient [@diaconis_horseshoes_2008]. A biological tissue is not a collection of discrete, isolated tissue types; it is an anatomical continuum transitioning from dense, metabolite-rich structures through paravascular tissue into diffuse parenchyma. Because our encoder successfully learned the underlying structural morphology rather than arbitrary cluster membership, the t-SNE algorithm faithfully projects this continuous biological spectrum into a continuous geometric trajectory [@moon_visualizing_2019]. The application of K-Means clustering onto this manifold is then interpreted as the discretization of this gradient into biologically meaningful bands, not as the discovery of independent, non-overlapping chemical compartments.
|
||||
### Interpreting the t-SNE Embedding Shapes
|
||||
|
||||
Reviewers from a computer vision background may expect an optimal unsupervised result to yield discrete, well-separated "blobs" in the t-SNE projection — and this is exactly what the workflow produces on all seven datasets. The K-Means domains appear as clearly separated, self-contained groups in every projection, with no overlapping or interleaved clusters, so the discretization into metabolic domains does not depend on any arbitrary threshold along a continuous gradient. Beyond this clean separation, each tissue imprints a characteristic global geometry onto its learned embedding, and these shapes are consistent and reproducible: the human colon and the mouse bladder organize into closed, roughly circular arrangements; the *Datura* leaf resolves into a donut-shaped (annular) structure; the mouse liver, the *Datura* root, and the San Pedro cactus fold into ear-shaped configurations; and the mouse stomach extends into an elongated, fish-shaped topology. Because the same encoder and the same K-selection logic were applied to every sample, these consistent, dataset-specific geometries indicate that the contrastive stage captures genuine tissue-level structure rather than dataset-specific artifacts [@moon_visualizing_2019]. The application of K-Means onto each of these well-separated manifolds is therefore interpreted as the identification of independent, biologically meaningful chemical compartments, not as the arbitrary banding of an amorphous continuum.
|
||||
|
||||
## Advantages of Contrastive Learning over Linear Decomposition
|
||||
|
||||
@@ -161,7 +163,7 @@ The unsupervised decomposition of the latent space of the *Datura innoxia* leaf
|
||||
|
||||
To confirm the identity of the tropane alkaloids *in situ*, we subjected the precursor ion at *m/z* 304.17 to tandem mass spectrometry (MS/MS) at a collision energy of 20 eV. The resulting fragmentation pattern from the leaf surface showed an excellent spectral match with the commercial scopolamine reference standard, and the diagnostic product ions across the *m/z* 80--320 range confirm the unambiguous structural identification of scopolamine directly from the plant surface without the need for extensive sample preparation [@garcia-rojas_identification_2024]. Critically, the MS/MS precursor at *m/z* 304.17 corresponds exactly to one of the centroid bins independently generated by the pipeline's peak-picking algorithm, producing the ion image `ion_304.17.png`. The adjacent bins (*m/z* 304.00--304.42) capture the isotopic envelope of scopolamine and are also structurally consistent with this assignment, as confirmed by their shared vascular-related spatial patterns.
|
||||
|
||||
Quantitatively, the leaf validation signature is strong: a global statistical analysis across 1,394 discovered isotopic pairs yielded a mean latent distance of $0.2687$, compared to $0.5715$ for random ion pairs, achieving profound statistical significance (Welch's t-test, $p < 10^{-300}$). Of these, 1,353 pairs (97.1\%) passed strict structural validation (Cosine Similarity $\geq 0.80$), including Atropine (*m/z* 290.08) and its $+1$ isotope (*m/z* 291.17) with a cosine similarity of 0.9959. The pipeline was applied identically to the *Datura innoxia* root dataset (2.5 GB, 21,060 pixels, 858 ion images), where all three metrics agree on k = 3 and the segmentation separates the biosynthetic-site domains: tropinone (*m/z* 140.17) and tropine (*m/z* 142.08) are co-localized in one domain, while cuscohygrine (*m/z* 225.92) and atropine/hyoscyamine (*m/z* 290.08) are co-localized in a second domain. Scopolamine is absent from the root ion corpus because the root spectrum is dominated by the biosynthetic precursors (the base peak is tropine, *m/z* 142.08), so the scopolamine channel reaches only 1.5% of the base-peak intensity and falls below the 2% cutoff — consistent with the classical model in which scopolamine is produced in the root but accumulates distally in the shoot [@schlesinger_tropane_2021]. The root result demonstrates that the workflow generalizes across tissues without any parameter change.
|
||||
Quantitatively, the leaf validation signature is strong: a global statistical analysis across 1,394 discovered isotopic pairs yielded a mean latent distance of $0.2687$, compared to $0.5715$ for random ion pairs, achieving profound statistical significance (Welch's t-test, $p < 10^{-300}$). Of these, 1,353 pairs (97.1\%) passed strict structural validation (Cosine Similarity $\geq 0.80$), including Atropine (*m/z* 290.08) and its $+1$ isotope (*m/z* 291.17) with a cosine similarity of 0.9959. The pipeline was applied identically to the *Datura innoxia* root dataset (2.5 GB, 21,060 pixels, 858 ion images), where all three metrics agree on k = 3 and the segmentation reflects the longitudinal architecture of the root rather than a single biosynthetic site. The three recovered domains differ in their spatial polarity: Cluster 2 (the largest domain, 351 ions) concentrates its ion presence close to the stem junction; Cluster 1 is enriched at the root apex and markedly weaker at the stem connection; and Cluster 0 combines both features, presenting signal both at the root apex and at the stem junction. These domains partition the alkaloid biosynthetic machinery accordingly: tropinone (*m/z* 140.17) and tropine (*m/z* 142.08) fall in Cluster 0, the both-zones domain, while cuscohygrine (*m/z* 225.92) and atropine/hyoscyamine (*m/z* 290.08) fall in Cluster 1, the apex-enriched domain. Scopolamine is absent from the root ion corpus because the root spectrum is dominated by the biosynthetic precursors (the base peak is tropine, *m/z* 142.08), so the scopolamine channel reaches only 1.5% of the base-peak intensity and falls below the 2% cutoff — consistent with the classical model in which scopolamine is produced in the root but accumulates distally in the shoot [@schlesinger_tropane_2021]. The root result demonstrates that the workflow generalizes across tissues without any parameter change.
|
||||
|
||||
# Data and Code Availability
|
||||
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 294 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 963 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 2.1 MiB |
Reference in New Issue
Block a user