Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bio-qsar-modeling

БесплатноЗапускает вложенные скриптыНе проверен

Builds QSAR / QSPR models using chemprop D-MPNN, MolFormer, Uni-Mol, ChemBERTa, random forest baselines, and Gaussian processes with explicit handling of OECD…

lilinjiот lilinji★ 18 звёзд на GitHub

Об этом скилле

Version Compatibility

Reference examples target: chemprop 2.2.x (major API change from 1.x), RDKit 2024.09+, scikit-learn >=1.4,<1.6, MAPIE >=0.8,<1.0 for the MapieRegressor example, shap 0.44+, and pytorch 2.1+. Recheck examples before widening these bounds because Chemprop, scikit-learn calibration, and MAPIE interfaces evolve independently.

Before using code patterns, verify installed versions match. If versions differ:

  • Python: pip show <package> then help(module.function) to check signatures
  • CLI: chemprop train --help (chemprop 2.x); chemprop_train --help (1.x legacy)

If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.

QSAR Modeling

Build quantitative structure-activity relationship models from molecular structure inputs. The choice of model, featurization, and split strategy determines whether the model captures transferable chemical signal or memorizes the training data. chemprop D-MPNN with optional Morgan / RDKit descriptors is a useful open-source approach; transformer-based methods (MolFormer, Uni-Mol, ChemBERTa) should be compared on the same split and endpoint. The OECD validation principles support transparent documentation and evaluation of (Q)SAR models, but following them does not by itself confer regulatory acceptance.

For descriptor/fingerprint choices, see chemoinformatics/molecular-descriptors. For ADMET-specific QSAR, see chemoinformatics/admet-prediction. For molecular standardization (critical upstream), see chemoinformatics/molecular-standardization.

Model Taxonomy

Model Architecture Use case Fails when
Random Forest + ECFP4 Classical baseline Small-data comparison, interpretability May miss signal not represented by the fingerprint
chemprop D-MPNN Directed message passing Graph-learning candidate to benchmark Can overfit when data are sparse or biased
chemprop D-MPNN + RDKit 2D Hybrid graph + descriptors Useful hybrid baseline; compare on the same split Diminishing returns at large data
MolFormer SMILES transformer Large public training data benefit Compute overhead; OOD risk
Uni-Mol 3D-aware transformer 3D-relevant endpoints (binding) Requires 3D conformers
ChemBERTa-2 SMILES transformer pretrained on up to 77M molecules SMILES language-model baseline Fine-tuning benefit is endpoint- and split-dependent
Gaussian Process + ECFP4 Probabilistic Active learning; uncertainty O(N^3) scaling
MultiTask DNN Joint training Multiple endpoints Data must overlap

Decision: Compare a fingerprint-based baseline with chemprop under the same split and endpoint. Add a pretrained transformer or 3D model only when its representation, compute cost, and validation design fit the deployment question; dataset size alone does not determine the winner.

Decision Tree by Scenario

Dataset context Endpoint type Model to benchmark
Sparse labels or few independent series Regression / classification Regularized fingerprint baseline; quantify instability and avoid unsupported deployment
Multiple scaffold groups with adequate labels Regression / classification Fingerprint baseline plus chemprop on identical splits
Large public or internal training collection Regression / classification Benchmark chemprop and a relevant pretrained representation
Multi-task Related endpoints (CYP3A4, CYP2D6, etc.) chemprop MultiTask
3D-relevant Binding, conformer-dependent Uni-Mol with conformer ensemble

OECD 5 Principles

The OECD principles were agreed in 2004; the 2007 guidance explains their application:

  1. Defined endpoint: specific bioassay, units, threshold definitions
  2. Unambiguous algorithm: reproducible code, fixed random seeds, version-pinned dependencies
  3. Defined applicability domain (AD): where the model is valid
  4. Appropriate measures of goodness-of-fit, robustness, and predictivity: external test set and suitable validation
  5. Mechanistic interpretation, if possible: biological/chemical rationale where available

For non-regulatory QSAR, all 5 still good practice; especially AD definition is critical.

Applicability Domain Methods

Method Definition Pro Con
Ensemble variance Std across N-model ensemble predictions Supported by chemprop predict --uncertainty-method ensemble when multiple model paths are supplied Assumes useful ensemble diversity; not calibrated coverage
kNN distance Mean Tanimoto to k nearest in training Easy to interpret Doesn't account for label distribution
Leverage Hat matrix diagonal Statistical Linear assumptions
KDE on PCA Density in feature space Captures multivariate structure Density choice subjecti
Полный SKILL.md на GitHub

Установить bio-qsar-modeling в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/chemprop_pipeline.shusage-guide.md

FAQ

Что делает скилл bio-qsar-modeling?

Builds QSAR / QSPR models using chemprop D-MPNN, MolFormer, Uni-Mol, ChemBERTa, random forest baselines, and Gaussian processes with explicit handling of OECD 5 principles, applicability domain (kNN, leverage, conformal prediction, Mahalanobis), scaffold-balanced splits, ensemble uncertainty, calibration (Platt, isotonic), feature importance (SHAP, atomic attribution), and prospective validation. Use when building target-specific predictive models from in-house bioassay data, ADMET endpoints, or selectivity profiles.

Как установить скилл bio-qsar-modeling?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bio-qsar-modeling запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить bio-qsar-modeling с