peak-pairwise-comparison
Summary
Systematically compare all pairs of detected peaks in FT-ICR MS samples by calculating mass differences to identify potential biochemical transformations. This pairwise comparison is the foundation for generating mass-difference networks that reveal metabolic pathway connectivity and hub metabolites.
When to use
Apply this skill after molecular formula assignment and peak filtering are complete, when you have a filtered peak list (m/z values and molecular formulas) and want to discover biochemical transformations without prior knowledge of reaction networks. Use it specifically when investigating how microbial metabolic pathways differ across samples or when identifying hub metabolites involved in many reactions.
When NOT to use
- Raw, unprocessed FT-ICR MS spectra without prior molecular formula assignment — MetaboDirect does not provide raw spectra preprocessing
- Peak lists that have not been filtered for isotopic presence (13C peaks), formula assignment error (≥0.5 ppm), or sample presence thresholds — the comparison requires clean, validated peaks
- When chemical isomer separation or fine resolving power is critical — DI FT-ICR MS cannot separate isomers and signal suppression or enhancement can confound results
Inputs
- Filtered peak list (CSV): m/z values, assigned molecular formulas, abundance values, and compound class assignments
- Reference biochemical transformation key: predefined masses of common metabolic reactions with biotic/abiotic categorization
Outputs
- Edge CSV files per sample: source peak m/z, target peak m/z, transformation type, mass error
- Node CSV file: all detected peaks with m/z, molecular formula, compound class
- Transformation statistics (CSV): count per sample, transformation frequency distribution
- Cytoscape-importable node and edge files for network visualization
How to apply
Load the filtered peak list (CSV format with m/z values and assigned molecular formulas) for each sample. Calculate all pairwise mass differences between detected peaks within that sample. Match each calculated mass difference against a reference biochemical transformation key (predefined masses of common metabolic reactions) using a mass error threshold of ≤1 ppm. Retain only transformations meeting this tolerance. Classify matched transformations as biotic or abiotic using prior biochemical categorization. Output edge lists per sample (source peak m/z, target peak m/z, transformation type, observed mass error) and consolidated node files with all detected peaks, their m/z values, molecular formulas, and compound class assignments.
Related tools
- MetaboDirect (Executes pairwise mass difference calculation, transformation matching against reference keys, and generates edge/node CSV outputs for network construction) — https://github.com/Coayala/MetaboDirect
- Cytoscape (Imports and visualizes the node and edge CSV files as biochemical transformation networks)
- KEGG database (Provides reference biochemical transformation definitions and metabolic reaction context)
Evaluation signals
- Mass error of retained transformations is ≤1 ppm when compared to reference biochemical transformation key entries
- Edge CSV files contain valid pairwise comparisons (no self-loops, source and target m/z values present in node file)
- Transformation frequency distribution shows expected patterns (some transformations appear in multiple samples, others are sample-specific)
- Node file accounts for all peaks in the input filtered peak list (row count consistency)
- Generated edge/node files import without schema errors into Cytoscape and produce connected or near-connected components representing metabolic pathways
Limitations
- Pairwise comparison scales quadratically with peak count; samples with very large peak lists (>5000 peaks) may require extended computation time
- Mass error tolerance (1 ppm) may miss true transformations in lower-resolution instruments or may retain false positives in complex mixtures with overlapping m/z regions
- Signal suppression or enhancement in direct injection MS can mask real peaks or introduce artificial ones, confounding transformation network interpretation
- Transformation matching depends entirely on the completeness and accuracy of the reference biochemical transformation key; novel or poorly characterized reactions will not be detected
Evidence
- [other] Calculate all pairwise mass differences between detected peaks in each sample and match each mass difference to the reference biochemical transformation key, retaining transformations with mass error ≤1 ppm against reference values.: "Calculate all pairwise mass differences between detected peaks in each sample. 3. Match each mass difference to the reference biochemical transformation key, retaining transformations with mass error"
- [abstract] MetaboDirect is uniquely able to automatically generate biochemical transformation networks based on mass differences.: "MetaboDirect is also uniquely able to automatically generate biochemical transformation networks (ab initio) based on mass differences"
- [other] The networks are designed to quantify differences in microbial metabolic pathways and identify hub metabolites involved in many reactions.: "networks designed to quantify differences in microbial metabolic pathways and identify hub metabolites involved in many reactions"
- [intro] The pipeline accepts peak abundance and assigned molecular formula data produced after initial processing of raw FT-ICR MS spectra.: "The pipeline accepts peak abundance and assigned molecular formula data produced after an initial processing of raw FT-ICR MS spectra"
- [intro] Signal suppression or enhancement is a key drawback that can confound downstream data analysis.: "signal suppression or enhancement that can confound downstream data analysis"
1---2name: peak-pairwise-comparison3description: Use when after molecular formula assignment and peak filtering are complete, when you have a filtered peak list (m/z values and molecular formulas) and want to discover biochemical transformations without prior knowledge of reaction networks.4license: CC-BY-4.05---67# peak-pairwise-comparison89## Summary1011Systematically compare all pairs of detected peaks in FT-ICR MS samples by calculating mass differences to identify potential biochemical transformations. This pairwise comparison is the foundation for generating mass-difference networks that reveal metabolic pathway connectivity and hub metabolites.1213## When to use1415Apply this skill after molecular formula assignment and peak filtering are complete, when you have a filtered peak list (m/z values and molecular formulas) and want to discover biochemical transformations without prior knowledge of reaction networks. Use it specifically when investigating how microbial metabolic pathways differ across samples or when identifying hub metabolites involved in many reactions.1617## When NOT to use1819- Raw, unprocessed FT-ICR MS spectra without prior molecular formula assignment — MetaboDirect does not provide raw spectra preprocessing20- Peak lists that have not been filtered for isotopic presence (13C peaks), formula assignment error (≥0.5 ppm), or sample presence thresholds — the comparison requires clean, validated peaks21- When chemical isomer separation or fine resolving power is critical — DI FT-ICR MS cannot separate isomers and signal suppression or enhancement can confound results2223## Inputs2425- Filtered peak list (CSV): m/z values, assigned molecular formulas, abundance values, and compound class assignments26- Reference biochemical transformation key: predefined masses of common metabolic reactions with biotic/abiotic categorization2728## Outputs2930- Edge CSV files per sample: source peak m/z, target peak m/z, transformation type, mass error31- Node CSV file: all detected peaks with m/z, molecular formula, compound class32- Transformation statistics (CSV): count per sample, transformation frequency distribution33- Cytoscape-importable node and edge files for network visualization3435## How to apply3637Load the filtered peak list (CSV format with m/z values and assigned molecular formulas) for each sample. Calculate all pairwise mass differences between detected peaks within that sample. Match each calculated mass difference against a reference biochemical transformation key (predefined masses of common metabolic reactions) using a mass error threshold of ≤1 ppm. Retain only transformations meeting this tolerance. Classify matched transformations as biotic or abiotic using prior biochemical categorization. Output edge lists per sample (source peak m/z, target peak m/z, transformation type, observed mass error) and consolidated node files with all detected peaks, their m/z values, molecular formulas, and compound class assignments.3839## Related tools4041- **MetaboDirect** (Executes pairwise mass difference calculation, transformation matching against reference keys, and generates edge/node CSV outputs for network construction) — https://github.com/Coayala/MetaboDirect42- **Cytoscape** (Imports and visualizes the node and edge CSV files as biochemical transformation networks)43- **KEGG database** (Provides reference biochemical transformation definitions and metabolic reaction context)4445## Evaluation signals4647- Mass error of retained transformations is ≤1 ppm when compared to reference biochemical transformation key entries48- Edge CSV files contain valid pairwise comparisons (no self-loops, source and target m/z values present in node file)49- Transformation frequency distribution shows expected patterns (some transformations appear in multiple samples, others are sample-specific)50- Node file accounts for all peaks in the input filtered peak list (row count consistency)51- Generated edge/node files import without schema errors into Cytoscape and produce connected or near-connected components representing metabolic pathways5253## Limitations5455- Pairwise comparison scales quadratically with peak count; samples with very large peak lists (>5000 peaks) may require extended computation time56- Mass error tolerance (1 ppm) may miss true transformations in lower-resolution instruments or may retain false positives in complex mixtures with overlapping m/z regions57- Signal suppression or enhancement in direct injection MS can mask real peaks or introduce artificial ones, confounding transformation network interpretation58- Transformation matching depends entirely on the completeness and accuracy of the reference biochemical transformation key; novel or poorly characterized reactions will not be detected5960## Evidence6162- [other] Calculate all pairwise mass differences between detected peaks in each sample and match each mass difference to the reference biochemical transformation key, retaining transformations with mass error ≤1 ppm against reference values.: "Calculate all pairwise mass differences between detected peaks in each sample. 3. Match each mass difference to the reference biochemical transformation key, retaining transformations with mass error"63- [abstract] MetaboDirect is uniquely able to automatically generate biochemical transformation networks based on mass differences.: "MetaboDirect is also uniquely able to automatically generate biochemical transformation networks (ab initio) based on mass differences"64- [other] The networks are designed to quantify differences in microbial metabolic pathways and identify hub metabolites involved in many reactions.: "networks designed to quantify differences in microbial metabolic pathways and identify hub metabolites involved in many reactions"65- [intro] The pipeline accepts peak abundance and assigned molecular formula data produced after initial processing of raw FT-ICR MS spectra.: "The pipeline accepts peak abundance and assigned molecular formula data produced after an initial processing of raw FT-ICR MS spectra"66- [intro] Signal suppression or enhancement is a key drawback that can confound downstream data analysis.: "signal suppression or enhancement that can confound downstream data analysis"