Skip to content
Back to skills

Molecular Rag

ASecurity

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

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
ai-agentspythongobashapidatabase

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add huang-sh/DeepScience --skill molecular-rag --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Molecular Rag?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Molecular Rag
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/huang-sh-molecular-rag/badge)](https://www.skillsdirectory.com/skills/huang-sh-molecular-rag)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: molecular-rag
description: Retrieve structurally similar compounds with known properties from ChEMBL/ZINC to ground predictions and inform optimization. Based on MolRAG (Xian 2025, ACL).
category: chemistry
license: MIT
metadata:
version: 1.0.0
tags: [drug-discovery, RAG, retrieval, ChEMBL, analog-search, grounding]
dependencies: ["rdkit-pypi", "requests", "pandas"]
---

# 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

```bash
pip install rdkit-pypi requests pandas
```

## Core Workflows

### 1. Find Similar Compounds with Known Properties

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

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

### 3. SAR Context for Optimization

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

## Script Reference

| Script | Purpose | Key Outputs |
|--------|---------|-------------|
| `retrieve_analogs.py` | Find similar compounds with experimental data | JSON with analogs, similarities, bioactivities |

Files in this skill

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…