Pychemy (https://github.com/ginkgobioworks/pychemy).
Pychemy at this time isn’t good fit for high-resolution metabolomics because its mass calculation is not of enough precision. E.g. in pychemy.adducts, it’s wrong to use (‘M+3H’, 0.33, 1.0073),
because the computing/rounding error in 0.33 (correct is 1/3) is far too large for mass precision.
For high-resolution measurements, electrons should be considered too.
Please do not hesitate to contact us via the GitHub issues.
mass2chem - low level utilities in interpreting mass spectrometry data
This package provides
The lists of mass patterns for isotopologues, adducts, and ISFs, as referenced in Chi Y, Mitchell JM, Li S. A systematic analysis of in-source fragments in LC-MS metabolomics. bioRxiv. 2025. doi:10.1101/2025.02.04.636472., are located under
mass2chem/source_data. Each list is specific to the instrument and ion mode.Related tools
Generalized computing of isotopes and adducts: khipu (https://github.com/shuzhao-li-lab/khipu, https://pubs.acs.org/doi/10.1021/acs.analchem.2c05810)
High-level metabolite functions and metabolic models: Json’s Metabolite Services (JMS, https://github.com/shuzhao-li-lab/JMS)
Metabolomics data processing: asari (https://github.com/shuzhao-li-lab/asari, https://www.nature.com/articles/s41467-023-39889-1)
Python-Centric Pipeline for Metabolomics (https://github.com/shuzhao-li-lab/PythonCentricPipelineForMetabolomics)
Common data models for metabolomics: metDataModel (https://github.com/shuzhao-li/metDataModel)
Third party references:
https://github.com/opencobra/cobrapy/blob/devel/cobra/core/formula.py (using average molecular weight at the time of retrieval, not mass spec oriented)
https://github.com/domdfcoding/chemistry_tools
Pychemy (https://github.com/ginkgobioworks/pychemy). Pychemy at this time isn’t good fit for high-resolution metabolomics because its mass calculation is not of enough precision. E.g. in pychemy.adducts, it’s wrong to use (‘M+3H’, 0.33, 1.0073), because the computing/rounding error in 0.33 (correct is 1/3) is far too large for mass precision. For high-resolution measurements, electrons should be considered too.
Please do not hesitate to contact us via the GitHub issues.
Citation to come.