mass-spectrometry-data-file-parsing
Summary
Parse raw mass spectrometry data files from multiple instrument vendors and formats into a unified in-memory representation to enable downstream visualization, quality control, and quantitation workflows. This skill is essential because MS instrument vendors use proprietary binary formats (Agilent .d, Thermo .raw, Bruker .d) and open standards (mzML) that require format-specific readers and normalization before analysis.
When to use
Apply this skill when you receive raw MS data files from LC-MS, LC-IMS-MS, direct infusion, or DDA/DIA experiments and need to extract ion chromatograms, mobility heatmaps, quality metrics, or perform spectral matching. The skill is triggered by the availability of raw instrument files (not already converted to feature tables or spectra libraries) and the need to preserve full chromatographic, mobility, and fragmentation information.
When NOT to use
- Input is already a feature table (CSV with detected peaks, retention times, abundances) — use mass-spectrometry-peak-detection or mass-spectrometry-peak-quantitation instead.
- Input is a spectral library (MSP or NIST format) — use mass-spectrometry-spectral-library-matching instead.
- You only need to compare feature lists from different processing software without re-analyzing raw chromatography — use Comparador tool for CSV harmonization.
Inputs
- Raw MS data file in Agilent .d, Thermo .raw, Bruker .d, or mzML format
- User-specified m/z range (min, max in Da or ppm tolerance)
- User-specified retention time range (min, max in minutes)
- User-specified arrival time / mobility range (min, max in ms or inverse reduced mobility units) — optional for LC-MS, required for LC-IMS-MS
Outputs
- Parsed MS data structure indexed by (m/z, retention time, arrival time)
- Extracted ion chromatograms (XIC) as (time, intensity) vectors for each target m/z
- Ion mobility heatmaps (XIM) as 2D arrays (m/z × arrival time) with intensity
- MS/MS fragmentation spectra (precursor m/z, product m/z, intensity) for specified ranges
- Quality control metrics (peak count, intensity distribution, signal-to-noise ratios) per scan
How to apply
Use Mirador's embedded data reader to load raw MS files in Agilent .d, Thermo .raw, Bruker .d, or mzML format through the IonToolPack GUI. The reader automatically detects instrument type and decompresses binary data into scanwise ion intensity arrays indexed by m/z, retention time (RT), and arrival time (for IMS data). Specify user-customizable m/z, RT, and arrival-time range parameters to define the region of interest. The parser extracts the subset of scans and peaks within those ranges, validates that all required dimensions (m/z, RT, optionally mobility) are present, and stores the result in an indexed structure compatible with downstream tools (Mirador visualization, PeakQC metrics, TandemMatch spectral matching, PeakQuant quantitation). Parsing is complete when all scans in the target range are readable and cross-referenced by time/m/z without gaps or decode errors.
Related tools
Examples
Double-click IonToolPack.exe → Mirador tab → click Import → select raw .raw or .d file → specify m/z range (e.g., 100–1200 Da), RT range (e.g., 0–60 min), arrival time (optional) → click Process → export XIC/XIM/MS-MS as PDF or CSV.
Evaluation signals
- All scans within the specified m/z, RT, and arrival-time ranges are successfully decoded and indexed without parse errors or truncation.
- Extracted ion chromatogram (XIC) for a known metabolite shows expected number of peaks and retention time consistency with instrument metadata.
- Ion mobility heatmap (XIM) displays expected mobility distribution for standards or controls (e.g., known lipid or peptide collision cross sections).
- MS/MS mirror plots align observed fragment m/z values with known library fragments within the specified m/z tolerance (user-defined, typically ±5–10 ppm).
- Output CSV and PDF files contain complete data rows (no null intensity or time values) and match expected dimensions (number of scans, peaks per scan, spectral fragmentation patterns).
Limitations
- Parser supports only Agilent .d, Thermo .raw, Bruker .d, and mzML formats; other vendor formats (e.g., SCIEX .wiff, Waters .raw) are not mentioned and require external conversion.
- IMS arrival-time parsing requires specific instrument configuration; data from non-IMS instruments will not populate mobility dimensions.
- No changelog is publicly available, so compatibility with future or legacy instrument firmware versions is not documented.
- Direct infusion data (no chromatographic separation) requires special handling of retention-time range parameters; misspecification may exclude all scans.
- Parsing performance and memory consumption scale with file size and density of MS/MS fragmentation data; very large DIA experiments may require sub-range splitting.
Evidence
- [readme] It reads data from multiple instrument formats, requires no installation and provides omics agnostic functionalities (metabolomics, lipidomics, proteomics, etc.): "It reads data from multiple instrument formats, requires no installation and provides omics agnostic functionalities (metabolomics, lipidomics, proteomics, etc.)"
- [other] Mirador exports raw MS visualizations in PDF and CSV formats, including XIC, XIM heatmaps, and MS/MS mirror plots, with user-customizable m/z, retention time, and arrival time ranges and tolerances.: "Mirador exports raw MS visualizations in PDF and CSV formats, including XIC, XIM heatmaps, and MS/MS mirror plots, with user-customizable m/z, retention time, and arrival time ranges and tolerances."
- [readme] Supported formats include Agilent 'd', Thermo '.raw', Bruker 'd', and mzML, and for different types of MS acquisition methods: LC-MS, LC-IMS-MS, With/without fragmentation spectra in DDA or DIA mode, Direct infusion: "Supported formats include Agilent 'd', Thermo '.raw', Bruker 'd', and mzML, and for different types of MS acquisition methods: LC-MS, LC-IMS-MS, With/without fragmentation spectra in DDA or DIA mode,"
- [other] Parse user-specified m/z, retention time (RT), and arrival-time (mobility) range parameters.: "Parse user-specified m/z, retention time (RT), and arrival-time (mobility) range parameters."
- [other] Load raw MS data in multiple instrument formats using Mirador's data reader.: "Load raw MS data in multiple instrument formats using Mirador's data reader."
1---2name: mass-spectrometry-data-file-parsing-33description: Use when you receive raw MS data files from LC-MS, LC-IMS-MS, direct4 infusion, or DDA/DIA experiments and need to extract ion chromatograms, mobility5 heatmaps, quality metrics, or perform spectral matching.6license: CC-BY-4.07metadata:8 edam_operation: http://edamontology.org/operation_34349 edam_topics:10 - http://edamontology.org/topic_012111 - http://edamontology.org/topic_352012 tools:13 - Mirador14 - IonToolPack15 - PeakQC16 - TandemMatch17 - PeakQuant18 techniques:19 - LC-MS20 - direct-infusion-MS21 - ion-mobility-MS22 license_tier: open23 provenance_tier: literature24derived_from:25- doi: 10.1021/jasms.4c0014626 title: PeakQC27evidence_spans:28- 'Mirador: Raw MS data visualization and export (PDF, CSV) including extracted ion29 chromatograms (XIC), extracted ion mobility (XIM) heatmaps, and MS/MS mirror plots'30- IonToolPack is a software suite housing tools for mass spectrometry data31- IonToolPack is a software suite housing tools for mass spectrometry data.32claims: []33provenance:34 collection: https://w3id.org/holobiomicslab/asb-skill/collection/metabolomics/v235 assembled_by: scripts/collect_metabolomics_collection.py36 sources:37 - build: coll_peakqc_cq38 doi: 10.1021/jasms.4c0014639 title: PeakQC40 dedup_kept_from: coll_peakqc_cq41schema_version: 0.2.042attribution:43 generator: AgenticScienceBuilder44 original_doi: 10.1021/jasms.4c0014645 all_source_dois:46 - 10.1021/jasms.4c0014647 zenodo_doi: 10.5281/zenodo.2079402748 curators: []49 promoter: Louis-Félix Nothias50 sponsor: CNRS & Université Côte d'Azur51---5253# mass-spectrometry-data-file-parsing5455## Summary5657Parse raw mass spectrometry data files from multiple instrument vendors and formats into a unified in-memory representation to enable downstream visualization, quality control, and quantitation workflows. This skill is essential because MS instrument vendors use proprietary binary formats (Agilent .d, Thermo .raw, Bruker .d) and open standards (mzML) that require format-specific readers and normalization before analysis.5859## When to use6061Apply this skill when you receive raw MS data files from LC-MS, LC-IMS-MS, direct infusion, or DDA/DIA experiments and need to extract ion chromatograms, mobility heatmaps, quality metrics, or perform spectral matching. The skill is triggered by the availability of raw instrument files (not already converted to feature tables or spectra libraries) and the need to preserve full chromatographic, mobility, and fragmentation information.6263## When NOT to use6465- Input is already a feature table (CSV with detected peaks, retention times, abundances) — use mass-spectrometry-peak-detection or mass-spectrometry-peak-quantitation instead.66- Input is a spectral library (MSP or NIST format) — use mass-spectrometry-spectral-library-matching instead.67- You only need to compare feature lists from different processing software without re-analyzing raw chromatography — use Comparador tool for CSV harmonization.6869## Inputs7071- Raw MS data file in Agilent .d, Thermo .raw, Bruker .d, or mzML format72- User-specified m/z range (min, max in Da or ppm tolerance)73- User-specified retention time range (min, max in minutes)74- User-specified arrival time / mobility range (min, max in ms or inverse reduced mobility units) — optional for LC-MS, required for LC-IMS-MS7576## Outputs7778- Parsed MS data structure indexed by (m/z, retention time, arrival time)79- Extracted ion chromatograms (XIC) as (time, intensity) vectors for each target m/z80- Ion mobility heatmaps (XIM) as 2D arrays (m/z × arrival time) with intensity81- MS/MS fragmentation spectra (precursor m/z, product m/z, intensity) for specified ranges82- Quality control metrics (peak count, intensity distribution, signal-to-noise ratios) per scan8384## How to apply8586Use Mirador's embedded data reader to load raw MS files in Agilent .d, Thermo .raw, Bruker .d, or mzML format through the IonToolPack GUI. The reader automatically detects instrument type and decompresses binary data into scanwise ion intensity arrays indexed by m/z, retention time (RT), and arrival time (for IMS data). Specify user-customizable m/z, RT, and arrival-time range parameters to define the region of interest. The parser extracts the subset of scans and peaks within those ranges, validates that all required dimensions (m/z, RT, optionally mobility) are present, and stores the result in an indexed structure compatible with downstream tools (Mirador visualization, PeakQC metrics, TandemMatch spectral matching, PeakQuant quantitation). Parsing is complete when all scans in the target range are readable and cross-referenced by time/m/z without gaps or decode errors.8788## Related tools8990- **Mirador** (Primary parser and visualization interface; handles multi-format data ingestion and exports parsed XIC/XIM/MS-MS as PDF and CSV) — https://github.com/pnnl/IonToolPack91- **IonToolPack** (Unified GUI container hosting Mirador data reader; manages file import and format auto-detection for LC-MS, LC-IMS-MS, and DDA/DIA modes) — https://github.com/pnnl/IonToolPack92- **PeakQC** (Consumes parsed MS data to extract comprehensive quality metrics (PCA, peak counts, intensity distributions) from MS1 scans) — https://github.com/pnnl/IonToolPack93- **TandemMatch** (Receives parsed MS/MS fragmentation spectra for spectral library matching against MSP or CSV libraries) — https://github.com/pnnl/IonToolPack94- **PeakQuant** (Operates on parsed MS1 extracted ion chromatograms to extract targeted peak abundances for quantitation) — https://github.com/pnnl/IonToolPack9596## Examples9798```99Double-click IonToolPack.exe → Mirador tab → click Import → select raw .raw or .d file → specify m/z range (e.g., 100–1200 Da), RT range (e.g., 0–60 min), arrival time (optional) → click Process → export XIC/XIM/MS-MS as PDF or CSV.100```101102## Evaluation signals103104- All scans within the specified m/z, RT, and arrival-time ranges are successfully decoded and indexed without parse errors or truncation.105- Extracted ion chromatogram (XIC) for a known metabolite shows expected number of peaks and retention time consistency with instrument metadata.106- Ion mobility heatmap (XIM) displays expected mobility distribution for standards or controls (e.g., known lipid or peptide collision cross sections).107- MS/MS mirror plots align observed fragment m/z values with known library fragments within the specified m/z tolerance (user-defined, typically ±5–10 ppm).108- Output CSV and PDF files contain complete data rows (no null intensity or time values) and match expected dimensions (number of scans, peaks per scan, spectral fragmentation patterns).109110## Limitations111112- Parser supports only Agilent .d, Thermo .raw, Bruker .d, and mzML formats; other vendor formats (e.g., SCIEX .wiff, Waters .raw) are not mentioned and require external conversion.113- IMS arrival-time parsing requires specific instrument configuration; data from non-IMS instruments will not populate mobility dimensions.114- No changelog is publicly available, so compatibility with future or legacy instrument firmware versions is not documented.115- Direct infusion data (no chromatographic separation) requires special handling of retention-time range parameters; misspecification may exclude all scans.116- Parsing performance and memory consumption scale with file size and density of MS/MS fragmentation data; very large DIA experiments may require sub-range splitting.117118## Evidence119120- [readme] It reads data from multiple instrument formats, requires no installation and provides omics agnostic functionalities (metabolomics, lipidomics, proteomics, etc.): "It reads data from multiple instrument formats, requires no installation and provides omics agnostic functionalities (metabolomics, lipidomics, proteomics, etc.)"121- [other] Mirador exports raw MS visualizations in PDF and CSV formats, including XIC, XIM heatmaps, and MS/MS mirror plots, with user-customizable m/z, retention time, and arrival time ranges and tolerances.: "Mirador exports raw MS visualizations in PDF and CSV formats, including XIC, XIM heatmaps, and MS/MS mirror plots, with user-customizable m/z, retention time, and arrival time ranges and tolerances."122- [readme] Supported formats include Agilent 'd', Thermo '.raw', Bruker 'd', and mzML, and for different types of MS acquisition methods: LC-MS, LC-IMS-MS, With/without fragmentation spectra in DDA or DIA mode, Direct infusion: "Supported formats include Agilent 'd', Thermo '.raw', Bruker 'd', and mzML, and for different types of MS acquisition methods: LC-MS, LC-IMS-MS, With/without fragmentation spectra in DDA or DIA mode,"123- [other] Parse user-specified m/z, retention time (RT), and arrival-time (mobility) range parameters.: "Parse user-specified m/z, retention time (RT), and arrival-time (mobility) range parameters."124- [other] Load raw MS data in multiple instrument formats using Mirador's data reader.: "Load raw MS data in multiple instrument formats using Mirador's data reader."