Summary: Mass spectrometry imaging (MSI) enables high-throughput spatial mapping of molecules, but the lack of chromatographic separation limits its utility for complex biological samples. Ion mobility (IM) provides key orthogonal separation. However, open-source tools dedicated for IM-MSI data analysis remain scarce and the integration of ion mobility information into downstream analysis is underexplored. Here, we present TIMSImaging, an open-source workflow for processing and visualization of MALDI-TIMS-MS data from Bruker timsTOF instruments. TIMSImaging incorporates a graph-based two-dimensional feature extraction algorithm for separation of isobaric peaks by ion mobility, supports collision cross section (CCS) calculation, and exports results as imzML files with ion mobility for downstream analysis. We demonstrate its capabilities on three case studies spanning different sample types, analyte types, and downstream tasks. Availability and implementation: TIMSImaging is released as open-source software under the MIT License. The source code, installation instructions, documentation, and case study Vignettes are available at https://github.com/YinyueZhu/TIMSImaging
Mass spectrometry imaging (MSI) characterizes the spatial heterogeneity of molecular abundances in biological samples. Experiments with complex designs, involving multiple conditions and multiple samples, provide particularly useful insight into differential abundance of analytes. However, analyses of these experiments require attention to details such as signal processing, selection of regions of interest, and statistical methodology. This manuscript contributes a statistical analysis workflow for detecting differentially abundant analytes in MSI experiments with complex designs. Using a case study of histologic samples of human tibial plateaus from knees of osteoarthritis patients and cadaveric controls, as well as simulated datasets, we illustrate the impact of the analysis decisions. We illustrate the importance of signal processing and feature aggregation for preserving biological relevance and alleviating the stringency of multiple testing. We further demonstrate the importance of selecting regions of interest in ways that are compatible with differential analysis. Finally, we contrast several common statistical models for differential analysis, showcase the appropriate use of replication, and demonstrate model-based calculation of sample size for followup investigations. The discussion is accompanied by detailed recommendations and an open-source R-based implementation that can be followed by other investigations.