Metadata-Version: 2.3
Name: ms2lda
Version: 2.0.1
Summary: Unsupervised Substructure Discovery using Topic Modelling with Automated Annotation.
License: MIT
Keywords: mass spectrometry,metabolomics,topic modeling,LDA,substructure discovery,cheminformatics
Author: MS2LDA Development Team
Author-email: justin.vanderhooft@wur.nl
Maintainer: MS2LDA Development Team
Maintainer-email: justin.vanderhooft@wur.nl
Requires-Python: >=3.11,<3.13
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Topic :: Scientific/Engineering :: Chemistry
Provides-Extra: lite
Provides-Extra: notebook
Requires-Dist: PyQt6 (>=6.7.1,<7.0.0)
Requires-Dist: dash (>=2.18.1,<3.0.0)
Requires-Dist: dash-bootstrap-components (>=1.6.0,<2.0.0)
Requires-Dist: dash-cytoscape (>=1.0.2,<2.0.0)
Requires-Dist: dash-extensions (==1.0.20)
Requires-Dist: diskcache (>=5.6.3)
Requires-Dist: faiss-cpu (==1.10.0)
Requires-Dist: gensim (>=4.3.3,<5.0.0)
Requires-Dist: ipython (>=8.26.0,<9.0.0) ; extra == "notebook"
Requires-Dist: jupyterlab (>=4.2.4,<5.0.0) ; extra == "notebook"
Requires-Dist: kaleido (==0.2.1) ; extra == "notebook"
Requires-Dist: lark-parser (>=0.12.0,<0.13.0)
Requires-Dist: matchms (>=0.27,<1)
Requires-Dist: matplotlib (>=3.9.1,<4.0.0)
Requires-Dist: networkx (>=3.3,<4.0)
Requires-Dist: openpyxl (==3.1.5)
Requires-Dist: pandas (>=2.2.2,<3.0.0)
Requires-Dist: plotly (>=5.23.0,<6.0.0)
Requires-Dist: psims (>=1.3.3,<2.0.0)
Requires-Dist: pubchempy (>=1.0.4,<2.0.0)
Requires-Dist: py_expression_eval (>=0.3.0,<0.4.0)
Requires-Dist: pyarrow (>=17.0.0,<18.0.0)
Requires-Dist: pydot (>=3.0.0,<4.0.0)
Requires-Dist: pymzml (>=2.5.10,<3.0.0)
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
Requires-Dist: rdkit (>=2023.9.6,<2026)
Requires-Dist: requests (>=2.32.3,<3.0.0)
Requires-Dist: scikit-learn (>=1.5.1,<2.0.0)
Requires-Dist: scipy (>=1.10.1,<2.0.0)
Requires-Dist: seaborn (>=0.13.2,<0.14.0)
Requires-Dist: spec2vec (>=0.8.0,<0.9.0)
Requires-Dist: tomotopy (>=0.12.7)
Project-URL: Documentation, https://ms2lda.org
Project-URL: Homepage, https://github.com/vdhooftcompmet/MS2LDA
Project-URL: Repository, https://github.com/vdhooftcompmet/MS2LDA
Description-Content-Type: text/markdown

![header](https://raw.githubusercontent.com/vdhooftcompmet/MS2LDA/main/App/assets/MS2LDA_LOGO_white.jpg)
![Maintainer](https://img.shields.io/badge/maintainer-Rosina_Torres_Ortega-blue)
![Maintainer](https://img.shields.io/badge/maintainer-Jonas_Dietrich-blue)
![Maintainer](https://img.shields.io/badge/maintainer-Joe_Wandy-blue)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.12625409.svg)](https://doi.org/10.5281/zenodo.15858124)

**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
```

## Quick Start Demo

Get started with MS2LDA in minutes! See the [**Quick Start Guide**](QUICK_START.md) for step-by-step instructions using Conda, Poetry, or virtualenv.

## 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

📚 **[View the full documentation](https://vdhooftcompmet.github.io/MS2LDA/)**

Our comprehensive documentation includes:
- Getting started guides
- API reference
- Tutorials and examples
- Parameter settings and advanced usage

## 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

[![GitHub Logo](https://github.com/vdhooftcompmet/group-website/blob/main/website/custom/logo/logo.png?raw=true)](https://vdhooftcompmet.github.io)
[![Github Logo](App/assets/WUR_RGB_standard_2021.png?raw=true)](https://www.wur.nl/en.htm)

---

