medchem

Filter compound libraries by drug-likeness rules and structural alerts.

783|65|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill medchem-leonchaox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: medchem
Source: https://github.com/LeonChaoX/qinyan-academic-skills/tree/main/skills/06-%E5%8C%96%E5%AD%A6%E4%BF%A1%E6%81%AF%E4%B8%8E%E8%8D%AF%E7%89%A9%E5%8F%91%E7%8E%B0/medchem
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill medchem-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires medchem, datamol, pandas, tqdm, rdkit, argparse, json, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you quickly triage large compound libraries by identifying drug-likeness compliance and flagging problematic chemical structures before costly downstream assays.

Core Features & Use Cases

  • Apply medicinal chemistry filters: Run Rule of Five, Veber, CNS, Oprea lead-like, REOS, golden triangle, REOS, and PAINS-style alert logic to decide which molecules are likely to be developable candidates.
  • Detect structural liabilities: Screen for common structural alerts, NIBR-style filters, and Lilly demerits to reject or deprioritize reactive or assay-interfering motifs.
  • Compute prioritization signals: Calculate molecular complexity (Bertz/Whitlock/Barone) and apply property constraints (MW, LogP, TPSA, H-bond counts, rotatable bonds) and chemical group detections to support lead optimization workflows.

Quick Start

Use the medchem skill to filter your SMILES list by applying rule_of_five and rule_of_cns, excluding common_alerts, and then return only the molecules that pass.

Frequently Asked Questions about medchem

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I filter large compound libraries for drug-likeness before screening?

To filter large compound libraries for drug-likeness, you can apply medicinal chemistry rules like Rule of Five, Veber, and REOS alongside structural alert filters to flag problematic chemical structures and identify likely developable candidates.

What is PAINS detection and how does it work in assay-interference screening?

PAINS detection in assay-interference screening identifies common structural alert motifs that frequently cause false positives, allowing you to reject or deprioritize reactive and assay-interfering compounds during the initial triage phase.

Can I use RDKit and pandas to batch process SMILES lists for structural alerts?

Yes, you can use RDKit and pandas within a Python-based filtering pipeline to batch process SMILES lists, applying parallel processing to evaluate structural alerts and output standardized results for downstream analysis.

How do I calculate molecular complexity for lead optimization workflows?

To calculate molecular complexity for lead optimization, apply Bertz, Whitlock, and Barone complexity metrics alongside property constraints like MW, LogP, TPSA, and rotatable bonds to generate prioritization signals for compound selection.

What's the best way to apply NIBR and Lilly demerit scoring to compound libraries?

The best way to apply NIBR and Lilly demerit scoring is to use a Python filtering pipeline that evaluates these standardized medicinal chemistry filters alongside Rule of Five and CNS rules to compute demerit scores for large compound batches.

Does this medicinal chemistry filtering pipeline support hit-to-lead progression constraints?

Yes, this medicinal chemistry filtering pipeline supports hit-to-lead progression by applying Oprea lead-like rules, golden triangle constraints, and property checks on molecular weight, LogP, TPSA, and H-bond counts to prioritize suitable candidates.