How mrmma2004/pharma-ml-toolkit works
PharmaML is a local-first toolkit for cheminformatics, QSAR, docking, PK/PD, biological-response analysis and visualization, with Python, desktop and web interfaces. The documented research workflow runs from data review and split design through training, independent evaluation and reporting. The graph also includes the separate web console’s sampled ML API/model layer and the Python Studio pipeline/server. README claims establish broad product capabilities; unsampled implementations are represented only at supported directory paths, and their internal connections are not inferred.
Main entry points: pharmaml Python API and CLI · pipelines.py Sequential workflow pipelines · ml ML API routes · server.py Loopback API server
Components 24
User interfaces
- Python API and CLI
pharma-ml-toolkit/src/pharmaml - Studio desktop
pharma-ml-toolkit/studio.py - Web console
pharma-ml-toolkit/frontend/src
Data and chemistry
- Data loading and splitting
pharma-ml-toolkit/src/pharmaml/data.py - Descriptors and fingerprints
pharma-ml-toolkit/src/pharmaml/chem/descriptors.py
Research workflows
- QSAR training and evaluation
pharma-ml-toolkit/src/pharmaml/ml - Biological response
pharma-ml-toolkit/src/pharmaml/biology - Docking preparation and campaigns
pharma-ml-toolkit/src/pharmaml/docking - PK and PD
pharma-ml-toolkit/src/pharmaml/pharma - Molecule generation
pharma-ml-toolkit/src/pharmaml/generative/genetic.py - Molecular dynamics analysis
pharma-ml-toolkit/src/pharmaml/md - Visualization and reports
pharma-ml-toolkit/src/pharmaml/viz - Sequential workflow pipelines
pharma-ml-toolkit/src/pharmaml/studio/pipelines.py
API and persistence
- Loopback API server
pharma-ml-toolkit/src/pharmaml/api/server.py - Events and jobs
pharma-ml-toolkit/src/pharmaml/api/events.py - Run persistence
pharma-ml-toolkit/src/pharmaml/api/persistence.py - API stores
pharma-ml-toolkit/src/pharmaml/api/stores.py - Toolkit errors
pharma-ml-toolkit/src/pharmaml/exceptions.py
Web ML
- ML API routes
src/app/api/ml - CSV parsing and resolution
src/lib/csv.ts - Model registry
src/lib/ml-models.ts - ML algorithms and metrics
src/lib/ml-math.ts - Shared API types
src/lib/toolkit-types.ts
Other components
- Researcher
Connections 32
- Researcher → Python API and CLI: runs analyses
README.md - Researcher → Studio desktop: uses workflows
README.md - Researcher → Web console: explores projects
README.md - Python API and CLI → Data loading and splitting: inspects data
README.md - Python API and CLI → QSAR training and evaluation: models compounds
README.md - Python API and CLI → Descriptors and fingerprints: computes features
README.md - Python API and CLI → Biological response: analyzes response
README.md - Python API and CLI → Docking preparation and campaigns: runs docking
README.md - Python API and CLI → PK and PD: calculates PK/PD
README.md - Python API and CLI → Molecule generation: explores generation
README.md - Python API and CLI → Molecular dynamics analysis: analyzes trajectories
README.md - Python API and CLI → Visualization and reports: plots and reports
README.md - Data loading and splitting → Sequential workflow pipelines: loads dataset
pharma-ml-toolkit/src/pharmaml/studio/pipelines.py - Sequential workflow pipelines → Descriptors and fingerprints: computes descriptors
pharma-ml-toolkit/src/pharmaml/studio/pipelines.py - Sequential workflow pipelines → QSAR training and evaluation: trains models
pharma-ml-toolkit/src/pharmaml/studio/pipelines.py - Sequential workflow pipelines → Biological response: runs analysis
pharma-ml-toolkit/src/pharmaml/studio/pipelines.py - Sequential workflow pipelines → Molecule generation: runs generation
pharma-ml-toolkit/src/pharmaml/studio/pipelines.py - Sequential workflow pipelines → Docking preparation and campaigns: prepares ligands
pharma-ml-toolkit/src/pharmaml/studio/pipelines.py - Sequential workflow pipelines → PK and PD: runs PK analysis
pharma-ml-toolkit/src/pharmaml/studio/pipelines.py - Sequential workflow pipelines → Molecular dynamics analysis: analyzes trajectory
pharma-ml-toolkit/src/pharmaml/studio/pipelines.py - Sequential workflow pipelines → Visualization and reports: creates reports
pharma-ml-toolkit/src/pharmaml/studio/pipelines.py - Studio desktop → Loopback API server: starts server
- Loopback API server → Events and jobs: publishes events
pharma-ml-toolkit/src/pharmaml/api/server.py - Loopback API server → Run persistence: gets data directory
pharma-ml-toolkit/src/pharmaml/api/server.py - Run persistence → API stores: uses stores
pharma-ml-toolkit/src/pharmaml/api/persistence.py - Loopback API server → Toolkit errors: exposes errors
pharma-ml-toolkit/src/pharmaml/api/server.py - Web console → ML API routes: requests ML tools
- ML API routes → CSV parsing and resolution: parses CSV
src/app/api/ml/train/route.ts - ML API routes → Model registry: resolves models
src/app/api/ml/train/route.ts - ML API routes → ML algorithms and metrics: fits and scores
src/app/api/ml/tune/route.ts - Model registry → ML algorithms and metrics: calls algorithms
src/lib/ml-models.ts - ML API routes → Shared API types: uses API types
src/app/api/ml/train/route.ts