



[](https://doi.org/10.5281/zenodo.11394248)
**MS2LDA** is an advanced tool designed for unsupervised substructure discovery in mass spectrometry data, utilizing topic modeling and providing automated annotation of discovered motifs. This tool significantly enhances the capabilities described in the [original MS2LDA paper](https://www.pnas.org/doi/abs/10.1073/pnas.1608041113) (2016), offering users an integrated workflow with improved usability, detailed visualizations, and a searchable motif database (MotifDB).
Mass spectrometry fragmentation patterns hold abundant structural information vital for analytical chemistry, natural product research, and food safety assessments. However, interpreting this data remains challenging, and only a fraction of available information is traditionally utilized. MS2LDA addresses this by identifying recurring substructures (motifs) across spectral datasets without relying on prior compound identification, thus accelerating structure elucidation and analysis.
---
# MS2LDA Installation and Usage
You can install MS2LDA using **pip**, **Conda**, or **Poetry**, depending on your preferences and requirements.
## Quick Install with pip
```bash
pip install ms2lda
```
## Installation Guides
For more detailed installation options and development setup:
- [**Conda Installation Guide**](README_CONDA.md) - Uses Conda environment management.
- [**Poetry Installation Guide**](README_POETRY.md) - Uses Poetry for dependency management (recommended for developers).
---
## Command Line Tool Usage
MS2LDA provides powerful command-line tools for batch processing and analysis of mass spectrometry data.
For detailed instructions on using the command-line interface, see the [**Command Line Tool Guide**](README_CLI.md).
---
## MS2LDAViz Application
MS2LDA includes a web-based visualization application (MS2LDAViz) for exploring and analyzing results.
For instructions on starting and using the visualization application, see the [**MS2LDAViz Guide**](README_VIZ.md).
---
## MS2LDA Documentation
Over the coming weeks, we will be developing comprehensive documentation to ensure clarity for users and developers. Stay tuned for detailed updates!
## Citing MS2LDA
Please cite our work if you use MS2LDA in your research:
Torres Ortega, L.R., Dietrich, J., Wandy, J., Mol, H., & van der Hooft, J.J.J. (2025). Large-scale discovery and annotation of hidden substructure patterns in mass spectrometry profiles. *bioRxiv*. doi: [https://doi.org/10.1101/2025.06.19.659491](https://www.biorxiv.org/content/10.1101/2025.06.19.659491v1)
---
## Our Research Group
[](https://vdhooftcompmet.github.io)
[](https://www.wur.nl/en.htm)
---
Raw data
{
"_id": null,
"home_page": "https://github.com/vdhooftcompmet/MS2LDA",
"name": "ms2lda",
"maintainer": "MS2LDA Development Team",
"docs_url": null,
"requires_python": "<3.13,>=3.11",
"maintainer_email": "justin.vanderhooft@wur.nl",
"keywords": "mass spectrometry, metabolomics, topic modeling, LDA, substructure discovery, cheminformatics",
"author": "MS2LDA Development Team",
"author_email": "justin.vanderhooft@wur.nl",
"download_url": "https://files.pythonhosted.org/packages/87/08/9862c0fcbabe26c3ec59f174f3e4658ac9678de75b8d75b210c4e41d5d42/ms2lda-2.0.0.tar.gz",
"platform": null,
"description": "\n\n\n\n[](https://doi.org/10.5281/zenodo.11394248)\n\n**MS2LDA** is an advanced tool designed for unsupervised substructure discovery in mass spectrometry data, utilizing topic modeling and providing automated annotation of discovered motifs. This tool significantly enhances the capabilities described in the [original MS2LDA paper](https://www.pnas.org/doi/abs/10.1073/pnas.1608041113) (2016), offering users an integrated workflow with improved usability, detailed visualizations, and a searchable motif database (MotifDB).\n\nMass spectrometry fragmentation patterns hold abundant structural information vital for analytical chemistry, natural product research, and food safety assessments. However, interpreting this data remains challenging, and only a fraction of available information is traditionally utilized. MS2LDA addresses this by identifying recurring substructures (motifs) across spectral datasets without relying on prior compound identification, thus accelerating structure elucidation and analysis.\n\n---\n\n# MS2LDA Installation and Usage\n\nYou can install MS2LDA using **pip**, **Conda**, or **Poetry**, depending on your preferences and requirements.\n\n## Quick Install with pip\n\n```bash\npip install ms2lda\n```\n\n## Installation Guides\n\nFor more detailed installation options and development setup:\n\n- [**Conda Installation Guide**](README_CONDA.md) - Uses Conda environment management.\n- [**Poetry Installation Guide**](README_POETRY.md) - Uses Poetry for dependency management (recommended for developers).\n\n---\n\n## Command Line Tool Usage\n\nMS2LDA provides powerful command-line tools for batch processing and analysis of mass spectrometry data.\n\nFor detailed instructions on using the command-line interface, see the [**Command Line Tool Guide**](README_CLI.md).\n\n---\n\n## MS2LDAViz Application\n\nMS2LDA includes a web-based visualization application (MS2LDAViz) for exploring and analyzing results.\n\nFor instructions on starting and using the visualization application, see the [**MS2LDAViz Guide**](README_VIZ.md).\n\n---\n\n## MS2LDA Documentation\nOver the coming weeks, we will be developing comprehensive documentation to ensure clarity for users and developers. Stay tuned for detailed updates!\n\n## Citing MS2LDA\n\nPlease cite our work if you use MS2LDA in your research:\n\nTorres Ortega, L.R., Dietrich, J., Wandy, J., Mol, H., & van der Hooft, J.J.J. (2025). Large-scale discovery and annotation of hidden substructure patterns in mass spectrometry profiles. *bioRxiv*. doi: [https://doi.org/10.1101/2025.06.19.659491](https://www.biorxiv.org/content/10.1101/2025.06.19.659491v1)\n\n---\n\n## Our Research Group\n\n[](https://vdhooftcompmet.github.io)\n[](https://www.wur.nl/en.htm)\n\n---\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Unsupervised Substructure Discovery using Topic Modelling with Automated Annotation.",
"version": "2.0.0",
"project_urls": {
"Documentation": "https://ms2lda.org",
"Homepage": "https://github.com/vdhooftcompmet/MS2LDA",
"Repository": "https://github.com/vdhooftcompmet/MS2LDA"
},
"split_keywords": [
"mass spectrometry",
" metabolomics",
" topic modeling",
" lda",
" substructure discovery",
" cheminformatics"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c1761c73d0659fe575de5c033be9a77ce4936188968f772637230af5091894de",
"md5": "b8e3ccab05eeeafbe60fd22e2eb640ee",
"sha256": "22a5f9ffb9c5b13810b77461648318748c1f17e896aa2036f0e830f152e54992"
},
"downloads": -1,
"filename": "ms2lda-2.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b8e3ccab05eeeafbe60fd22e2eb640ee",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.11",
"size": 818198,
"upload_time": "2025-07-10T19:36:54",
"upload_time_iso_8601": "2025-07-10T19:36:54.610608Z",
"url": "https://files.pythonhosted.org/packages/c1/76/1c73d0659fe575de5c033be9a77ce4936188968f772637230af5091894de/ms2lda-2.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "87089862c0fcbabe26c3ec59f174f3e4658ac9678de75b8d75b210c4e41d5d42",
"md5": "c645250fa1fd97af2523233d0e604a16",
"sha256": "e2270ed5d26aa5b70db42401012f0fe5b42a2f1cc9813df70f75f393bd16eb6c"
},
"downloads": -1,
"filename": "ms2lda-2.0.0.tar.gz",
"has_sig": false,
"md5_digest": "c645250fa1fd97af2523233d0e604a16",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.11",
"size": 790823,
"upload_time": "2025-07-10T19:36:56",
"upload_time_iso_8601": "2025-07-10T19:36:56.693771Z",
"url": "https://files.pythonhosted.org/packages/87/08/9862c0fcbabe26c3ec59f174f3e4658ac9678de75b8d75b210c4e41d5d42/ms2lda-2.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-10 19:36:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "vdhooftcompmet",
"github_project": "MS2LDA",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "ms2lda"
}