Metadata-Version: 2.4
Name: MolMiner
Version: 0.0.4
Summary: Tools for Cheminformatic Workflows.
Author: Tony Eight Lin
Author-email: Tony Eight Lin <tonyelin@tmu.edu.tw>
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: numpy>=2.4.3
Requires-Dist: pandas>=3.0.1
Requires-Dist: scipy>=1.17.1
Requires-Dist: rdkit>=2025.9.6
Requires-Dist: datamol>=0.12.5
Requires-Dist: scikit-learn>=1.8
Requires-Dist: splito>=0.1.4
Requires-Dist: umap-learn>=0.5.11
Requires-Dist: matplotlib>=3.7
Requires-Dist: seaborn>=0.13.2
Requires-Dist: legendkit>=0.3.6
Requires-Dist: tqdm>=4.67.3
Requires-Dist: requests>=2.31.0
Requires-Dist: fsspec>=2021.9
Requires-Dist: pillow>=10.0.1
Requires-Dist: ipython>=8.0.0
Requires-Dist: molminer[ml,docking,safe] ; extra == 'all'
Requires-Dist: meeko>=0.6.1 ; extra == 'docking'
Requires-Dist: torch>=2.10.0 ; extra == 'ml'
Requires-Dist: keras>=3.13.2 ; extra == 'ml'
Requires-Dist: xgboost>=3.2.0 ; extra == 'ml'
Requires-Dist: optuna>=4.2.1 ; extra == 'ml'
Requires-Dist: pydot>=3.0.0 ; extra == 'ml'
Requires-Dist: safe-mol==0.1.13 ; extra == 'safe'
Requires-Dist: transformers==4.51.0 ; extra == 'safe'
Requires-Python: >=3.11
Project-URL: repository, https://github.com/tlint101/MolMiner.git
Provides-Extra: all
Provides-Extra: docking
Provides-Extra: ml
Provides-Extra: safe
Description-Content-Type: text/markdown

# MolMiner

[![MolMiner](https://img.shields.io/pypi/v/MolMiner.svg?label=MolMiner&style=flat)](https://pypi.org/project/MolMiner)
[![python](https://img.shields.io/badge/Python-3.11+-3776AB.svg?style=flat&logo=python)](https://www.python.org)
[![jupyter](https://img.shields.io/badge/Jupyter-Lab-F37626.svg?style=flat&logo=Jupyter)](https://jupyterlab.readthedocs.io/en/stable)
[![scikit-learn](https://img.shields.io/badge/scikit-1.8+-%23F7931E.svg?style=flat&logo=scikit-learn)](https://scikit-learn.org/stable/)
[![pytorch](https://img.shields.io/badge/PyTorch-2.1.0+-EE4C2C.svg?style=flat&logo=pytorch)](https://pytorch.org)
[![Keras](https://img.shields.io/badge/Keras-3.0.0+-%23D00000.svg?style=flat&logo=keras&logoColor=D00000)](https://keras.io)

MolMiner consolidates tools for small-molecule virtual screening. It includes custom scripts for data preprocessing,
molecular docking (Autodock Vina), and ML/DL model development (Scikit-Learn and Keras). Using MolMiner is optional and
was created to streamline environment setup without manually sourcing relevant Python project packages.

## Installation
MolMiner installs a light cheminformatics core by default. Additional modules can be installed if needed. 
```bash
pip install MolMiner
```

### Additional modules

| Install                           | Adds                                                                         | Usage                                                                                                                        |
|-----------------------------------|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| `pip install MolMiner`            | rdkit, pandas, datamol, scikit-learn, splito, umap-learn, matplotlib/seaborn | fingerprints, BRICS/RECAP fragmentation, molecule drawing, chemical space (PCA/t-SNE/UMAP), clustering, plots, ROC/PR curves |
| `pip install "MolMiner[ml]"`      | torch, keras, xgboost, optuna, pydot                                         | `mminer.models`, `mminer.hyperparams`                                                                                        |
| `pip install "MolMiner[docking]"` | meeko                                                                        | `mminer.docking` receptor/ligand prep, docking, RMSD, and 3D pose viewing (pair with `vina` via Pixi or Conda)               |
| `pip install "MolMiner[safe]"`    | safe-mol, transformers                                                       | `slicer='safe'`, `SAFEbuild`, `Draw.safe_highlight`, `Matching`                                                              |
| `pip install "MolMiner[all]"`     | all of the above                                                             | everything except AutoDock Vina (see below)                                                                                  |

Installing additional modules at once: `pip install "MolMiner[ml,safe]"`.

### Model plots
`plot_model()` also needs the [Graphviz](https://graphviz.org/download/) `dot` binary, which pip cannot install. Install 
it with Conda (`conda install graphviz`) or a system package manager (`brew install graphviz`, `apt install graphviz`).

### Molecular Docking
Vina is **not** included in `[all]` or `[docking]`, because PyPI currently lacks wheels on macOS, Windows, and Python >= 3.13 (and fails to build from source on macOS). Instead, users need to install Vina from `conda-forge` using Pixi or Conda alongside `MolMiner[docking]`:

```bash
# Pixi
pixi add vina
pixi add --pypi "MolMiner[docking]"

# Conda
conda install -c conda-forge vina
pip install "MolMiner[docking]"
```

## Quickstart
Tutorials will be forthcoming.