Subir archivos a "/"

This commit is contained in:
2026-08-27 20:43:49 +02:00
parent 3a0a095c0c
commit daf0b11306
+4 -4
View File
@@ -18,7 +18,7 @@ The central objective of this paper is to show how this architecture scales with
## Multi-Dataset Benchmarking
To evaluate the scalability and robustness of the Julia-Python preprocessing pipeline, we assembled a diverse collection of seven publicly available MSI datasets covering a range of file sizes (0.07--4.4 GB), ionization sources, mass analyzers, and biological matrices (Table 1). The datasets comprise both centroid and profile acquisitions; all were processed using the same pipeline configuration described in the section "High-Performance Processing and Data Normalization (Julia)". ROI masks derived from the optical image were applied wherever a tissue reference was available — the *Datura* leaf and root, the human colon, and the three mouse tissues — restricting peak picking to pixels inside the tissue; only San Pedro, which lacks an optical reference, was processed without a mask. Peaks were then filtered using the default intensity threshold of 2\% of the base peak.
To evaluate the scalability and robustness of the Julia-Python preprocessing pipeline, we assembled a diverse collection of seven publicly available MSI datasets covering a range of file sizes (0.07--4.4 GB), ionization sources, mass analyzers, and biological matrices (Table 1). The datasets comprise both centroid and profile acquisitions; all were processed using the same pipeline configuration described in the section "High-Performance Processing and Data Normalization (Julia)". ROI masks derived from the optical image were applied wherever a tissue reference was available — the *Datura* leaf and root, the human colon, and the three mouse tissues — restricting peak picking to pixels inside the tissue; only San Pedro, which lacks an optical reference and was processed without a mask, is an LD-LTP MSI dataset from *Echinopsis pachanoi* cactus stem cross-section (Moreno-Pedraza et al., 2019, Anal. Chem. 10.1021/acs.analchem.8b04406). Peaks were then filtered using the default intensity threshold of 2\% of the base peak.
**Table 1.** Benchmark datasets used in this study.
@@ -26,7 +26,7 @@ To evaluate the scalability and robustness of the Julia-Python preprocessing pip
|---------|------------|---------------|----------|-----------|--------|
| Datura Leaf | LD-LTP | Ion Trap | *D. innoxia* | 2.0 GB | 17,066 |
| Datura Root | LD-LTP | Ion Trap | *D. innoxia* | 2.5 GB | 21,060 |
| San Pedro | MALDI | TOF | *E. pachanoi* | 1.1 GB | 19,600 |
| San Pedro | LD-LTP | Ion Trap | *E. pachanoi* | 1.1 GB | 19,600 |
| Mouse bladder | AP-SMALDI | Orbitrap | *M. musculus* | 778 MB | 34,840 |
| Human colon | DESI | Orbitrap | *H. sapiens* | 69 MB | 20,022 |
| Mouse liver | MALDI | TOF | *M. musculus* | 2.2 GB | 28,587 |
@@ -54,7 +54,7 @@ Previous benchmarks support this choice: Julia-based MSI architectures have been
## Multi-Dataset Benchmark: Julia-Python vs Cardinal (R) and MALDIquant (R)
To contextualize the performance of our Julia-based preprocessing within the current MSI software landscape, we conducted a controlled, three-way benchmark against Cardinal 3.14.0, the standard R/Bioconductor package for MSI analysis [@bemis_cardinal_2015], and against MALDIquant [@gibb_maldiquant:_2012], the standard R package for MALDI spectral processing. All three tools processed the same seven datasets (Table 1) on identical hardware (Intel i5-9400F, 22 GB RAM, Ubuntu 24.04). We designed a strictly equalized per-stage workload restricted to the steps that all three tools perform: (1) imzML file loading, and (2) in-memory extraction of a single target ion image at each dataset's canonical reference *m/z* (a biologically informative ion per sample: 304.17 for the *Datura* leaf and root, 885.5 for the human colon, 716.05 for the mouse bladder, 796.18 for the mouse liver, 804.3 for the mouse stomach, and 500.0 for San Pedro; tolerance 0.1 Da), plus the average spectrum and peak detection used to select the slice. The Julia engine runs the JuliaMSI `MSI_src` implementation, whose memory-mapped (`Mmap`) lazy loader and buffer pooling read spectra on demand from the on-disk `.ibd` file; for Cardinal, which stores centroid-mode spectra per-pixel as a list, the average spectrum was computed by binning pixel-wise m/z values onto a common 0.01 Da grid and the target ion image was extracted with the native 3.x API (`bin()` + `sliceImage()`); for MALDIquant, spectra were read into `MassSpectrum` objects and processed with `reduceIntensity`/`detectPeaks`, and the ion image was recovered from the aligned spectrum objects. Load memory (VmRSS delta) and wall-clock time were measured per stage via `/proc/self/status`, with each tool run in isolation. This apples-to-apples design deliberately excludes Julia-only steps (TrIQ normalization and PNG export) so that the comparison reflects identical computational work.
To contextualize the performance of our Julia-based preprocessing within the current MSI software landscape, we conducted a controlled, three-way benchmark against Cardinal 3.14.0, the standard R/Bioconductor package for MSI analysis [@bemis_cardinal_2015], and against MALDIquant [@gibb_maldiquant:_2012], the standard R package for MALDI spectral processing. All three tools processed the same seven datasets (Table 1) on identical hardware (Intel i5-9400F, 22 GB RAM, Ubuntu 24.04). We designed a strictly equalized per-stage workload restricted to the steps that all three tools perform: (1) imzML file loading, and (2) in-memory extraction of a single target ion image at each dataset's canonical reference *m/z* (a biologically informative ion per sample: 304.17 for the *Datura* leaf and root, 885.5 for the human colon, 716.05 for the mouse bladder, 796.18 for the mouse liver, 804.3 for the mouse stomach, and 500.0 for San Pedro (LD-LTP reference ion; mescaline observed at m/z ≈ 212.1 in the original study [@moreno-pedraza_elucidating_2019]); tolerance 0.1 Da), plus the average spectrum and peak detection used to select the slice. The Julia engine runs the JuliaMSI `MSI_src` implementation, whose memory-mapped (`Mmap`) lazy loader and buffer pooling read spectra on demand from the on-disk `.ibd` file; for Cardinal, which stores centroid-mode spectra per-pixel as a list, the average spectrum was computed by binning pixel-wise m/z values onto a common 0.01 Da grid and the target ion image was extracted with the native 3.x API (`bin()` + `sliceImage()`); for MALDIquant, spectra were read into `MassSpectrum` objects and processed with `reduceIntensity`/`detectPeaks`, and the ion image was recovered from the aligned spectrum objects. Load memory (VmRSS delta) and wall-clock time were measured per stage via `/proc/self/status`, with each tool run in isolation. This apples-to-apples design deliberately excludes Julia-only steps (TrIQ normalization and PNG export) so that the comparison reflects identical computational work.
## Complete Hybrid Pipeline: From imzML to Metabolic Domains
@@ -145,7 +145,7 @@ The segmentations of the two most architecturally demanding benchmark tissues ar
![Figure 3 — t-SNE segmentations and representative ion images for the mouse bladder and human colon.](figure3.png){width=16cm}
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.
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]. This star-like patterning, where mescaline concentrates around vascular bundles in the cortical region, reflects the plant's metabolic zonation and has been previously documented in the literature [@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.
### Interpreting the t-SNE Embedding Shapes