Published April 20, 2026 | Version v1

Automated separation of overlapping fingermarks by non-negative matrix factorization of DESI mass spectrometry imaging data

  • 1. ROR icon Aarhus University
  • 2. Aarhus Universitet

Description

Zenodo description for DESI NMF deposit

Data and code for: Automated separation of overlapping fingermarks by non-negative matrix factorization of DESI mass spectrometry imaging data

Description

This deposit contains the data and analysis code accompanying the manuscript:

Villesen P, Nielsen K, Frisch K. "Automated separation of overlapping fingermarks by non-negative matrix factorization of DESI mass spectrometry imaging data." Analytical and Bioanalytical Chemistry (2026).

Background. Desorption electrospray ionization mass spectrometry imaging (DESI-MSI) can visualize the spatial distribution of hundreds to thousands of molecular species across latent fingermarks. When fingermarks from different donors overlap on the same surface, standard imaging approaches cannot separate the individual contributions. We apply non-negative matrix factorization (NMF) to decompose DESI-MSI datasets into spatially coherent components, each representing a distinct molecular signature. Components are ranked by Moran's I (a measure of spatial autocorrelation) so that the most spatially structured — and therefore most informative — components appear first.

Data. Five gelatin-lifter slides containing latent fingermarks from 10 donors were imaged at 50 µm pixel resolution using a Waters Xevo G2-XS QToF mass spectrometer with a DESI XS ion source (mass range 50–1200 m/z, scan rate 200 µm/s). Each slide was acquired over 11–15 hours. The raw mass spectrometry imaging data were exported from Waters HDI 1.6 as tab-delimited text files (top 5,000 m/z features by total signal intensity, mass window 0.02 Da). The five slides are:

  • Slide 1 (230215): two overlapping fingermarks, donors D5/D6
  • Slide 2 (231019): two overlapping fingermarks, donors D6/D5
  • Slide 3 (231108): two overlapping fingermarks, donors D11/D12
  • Slide 4 (240202): two overlapping fingermarks, donors D1/D6
  • Slide 5 (240208): two overlapping fingermarks, donors D5/D1

A simulated four-fingermark overlay dataset was constructed by combining slides 1 and 3 (donors D5, D6, D11, D12) after cropping, 0.1 Da m/z binning, and global intensity normalisation.

Code. The analysis pipeline consists of four steps implemented in R Markdown:

  1. step_01_data_conversion_v12.rmd — Reads raw exported text files and converts them to compressed R data objects (.desi.qs) with log1p-transformed intensity matrices.
  2. step_02_create_pseudo_overlay_v01.rmd — Constructs the simulated four-fingermark overlay dataset from two individual slides.
  3. step_03_PCA_and_NMF_v12.rmd — Performs PCA and NMF (via the RcppML package; alternating least squares, squared Frobenius norm loss, K = 30 components per slide, K = 40 for the overlay, 500 iterations, tolerance 1e-6). Components are ordered by Moran's I.
  4. step_04_plotting_and_figures_v14.rmd — Generates all main and supplementary figures.

A gwf workflow file (workflow.py) orchestrates the pipeline on an HPC cluster. An R initialisation script (palles_init.R) sets shared ggplot themes and utility functions.

Software requirements. R (≥ 4.0) with packages: RcppML, qs, spdep, tidyverse, ggplot2, patchwork, viridis, Matrix. Python 3 with gwf (for HPC workflow orchestration). Computations were performed on an HPC cluster (4 cores, 100 GB RAM per job; NMF runtime up to 25 minutes per slide).

Related resources.

  • Prior publication on the DESI-MSI fingermark method: Frisch K et al. (2024) Anal. Chem. 96:12497–12506. DOI: 10.1021/acs.analchem.4c02626

Keywords

DESI-MSI, mass spectrometry imaging, non-negative matrix factorization, NMF, fingermarks, fingerprints, forensic science, spatial autocorrelation, Moran's I, desorption electrospray ionization

Files

Files (3.8 GB)

Name Size
md5:1456f7bcf2a044fe393c99466b9d8ed9
528.2 MB Download
md5:bb7be04d7a3850076c5f3dcc2bb43cca
1.0 GB Download
md5:8f42fbd50d310f3d70cc12ca52bea5cb
506.3 MB Download
md5:cfeea4a21ae6e953e6b5d235ce910857
750.1 MB Download
md5:3416f3ec1ffadd7a98cac475576ab2c2
987.0 MB Download
md5:e1c2166670888130775343a11d729e76
1.8 kB Download
md5:27c940a4a3dc22faa4136db3cceab4aa
3.2 kB Download
md5:27291b01c6f63f96f3d231e5ab410c43
10.4 kB Download
md5:e38bfe3515b25b8299ad7f8708b2de95
5.9 kB Download
md5:ad0ef4cf1881113addda160b2b3c7f3a
29.9 kB Download
md5:02af0bd14d010e06191bfdebf3f9fb9f
5.0 kB Download

Additional details

Software

Programming language
R