Skip to content
cccskills
FreePublished on GitHub

molecular-rag

Retrieve structurally similar compounds with known properties from ChEMBL/ZINC to ground predictions and inform optimization. Based on MolRAG (Xian 2025, ACL).

The English summary is being prepared. Showing the original description.

See how to install

Files included (2)

  • SKILL.md2.5 KB
  • scripts/retrieve_analogs.py7.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Molecular RAG (Retrieval-Augmented Generation)

Overview

LLMs hallucinate molecular properties. This skill grounds predictions by retrieving structurally similar compounds with experimentally measured properties from ChEMBL and ZINC. When the agent says "this compound should have good hERG safety," it can now check what happened with similar compounds in real assays.

Based on:

  • MolRAG (Xian et al., 2025, ACL): RAG for molecular property prediction — retrieves similar compounds to ground LLM predictions

When to Use This Skill

  • Before property prediction: Retrieve analogs with known properties for context
  • Lead optimization: Find what modifications worked for similar scaffolds
  • Novelty assessment: Check if your generated molecule is truly novel or already known
  • SAR grounding: Ground structure-activity reasoning in experimental data

Do NOT use this skill for:

  • Bulk database queries (use chembl-database or pubchem-database directly)
  • De novo generation (use denovo-design)

Related Skills

  • chembl-database: Direct ChEMBL API access
  • pubchem-database: PubChem compound lookup
  • zinc-database: ZINC compound search
  • admet-reasoning: Interpret properties of retrieved analogs

Installation

pip install rdkit-pypi requests pandas

Core Workflows

1. Find Similar Compounds with Known Properties

python scripts/retrieve_analogs.py \
    --smiles "c1ccc(NC(=O)c2ccccc2Cl)cc1" \
    --similarity-threshold 0.6 \
    --max-results 20 \
    --output analogs.json

2. Target-Specific Analog Search

python scripts/retrieve_analogs.py \
    --smiles "c1ccc(NC(=O)c2ccccc2Cl)cc1" \
    --target CHEMBL25 \
    --output target_analogs.json

3. SAR Context for Optimization

python scripts/retrieve_analogs.py \
    --smiles "c1ccc(NC(=O)c2ccccc2Cl)cc1" \
    --include-activities \
    --output sar_context.json

Script Reference

ScriptPurposeKey Outputs
retrieve_analogs.pyFind similar compounds with experimental dataJSON with analogs, similarities, bioactivities

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Simplest distributed training API. 4 lines to add distributed support to any PyTorch script. Unified API for DeepSpeed/FSDP/Megatron/DDP. Automatic device placement, mixed precision (FP16/BF16/FP8). Interactive config, single launch command. HuggingFace ecosystem standard.

The English summary is being prepared. Showing the original description.

huang-sh/DeepScience4Updated Jul 15, 2026

ADMET property prediction for drug candidates. Full pharmacokinetic panel (Caco-2, PPB, clearance, CYP), toxicity (hERG, AMES, DILI), drug-likeness (Lipinski, QED), using RDKit descriptors and TDC models.

The English summary is being prepared. Showing the original description.

huang-sh/DeepScience4Updated Jul 15, 2026

Interpretable ADMET analysis with mechanistic reasoning. Maps liabilities to structural causes and biological pathways. Based on CoTox (Park 2025) and DrugR (Liu 2026).

The English summary is being prepared. Showing the original description.

huang-sh/DeepScience4Updated Jul 15, 2026

aeon

Free

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.

The English summary is being prepared. Showing the original description.

huang-sh/DeepScience4Updated Jul 15, 2026

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for large-scale datasets.

The English summary is being prepared. Showing the original description.

huang-sh/DeepScience4Updated Jul 15, 2026

Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.

The English summary is being prepared. Showing the original description.

huang-sh/DeepScience4Updated Jul 15, 2026

See all skills by huang-sh

Report a problem with this skill