Agent skill

sar-analysis

Structure-activity relationship (SAR) analysis guide for drug discovery including molecular descriptor analysis, scaffold analysis, and activity cliff detection.

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill sar-analysis --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 23 KB
Bundled scripts: none
Path: skills/sciagent/sar-analysis/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 144
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Provides a SAR analysis workflow to identify a common scaffold (MCS) across molecules, decompose molecules into a core and R-groups, align fragments to the parent, and produce an interactive HTML report with a designed visualization workflow.

How it works

  • Data loading: automatically identifies columns for Compound Key, Activity, and SMILES from the input CSV, rather than assuming fixed names.
  • Core identification (MCS): pre-processes molecules with Chem.AddHs, then runs rdFMCS.FindMCS with parameters: threshold=0.8, ringMatchesRingOnly=True, completeRingsOnly=True, atomCompare=rdFMCS.AtomCompare.CompareElements, bondCompare=rdFMCS.BondCompare.CompareOrder. The resulting SMARTS is converted to core_mol, and 2D coordinates are computed with AllChem.Compute2DCoords(core_mol).
  • R-group decomposition & refinement: decomposes molecules into core and R-groups; excludes R-group columns that are identical across all molecules and removes those constant points from the core visualization.
  • Image generation & alignment: draws molecules using DrawMoleculeACS1996 for consistent visuals. Uses a specific alignment approach to superimpose core and R-groups onto the original molecule by attempting:
    1. direct substructure match,
    2. a match after converting dummies to queries (AdjustQueryProperties(makeDummiesQueries=True)),
    3. a match without chirality (useChirality=False). If a match is found, coordinates are copied from the parent conformer to the fragment; otherwise coordinates are computed anew. The reference implementation for alignment uses:
    • rdRGroupDecomposition.RGroupDecompose([core_mol], mols, asSmiles=False, asRows=False) for matching,
    • helper function align_substructure_to_parent(sub, parent) implementing the three strategies, and
    • synchronization steps to align original and fragment structures.
  • HTML Output: generates sar_analysis_report.html with modern CSS styling, ensuring table columns (Original, Core, R-groups) have a minimum width of 300px to preserve readability of structures.

When to use it

Use when you have an activity-bearing molecule set with SMILES and an identifier, and you need to produce an interpretable SAR report with a visually aligned core plus R-groups and an activity heatmap. The workflow is triggered by datasets that fit the described data loading and alignment steps and when a robust MCS core is obtainable with the specified parameters.

What it can touch

  • Uses RDKit components: rdFMCS.FindMCS, Chem.AddHs, AllChem.Compute2DCoords, rdMolDraw2D drawing utilities, AdjustQueryProperties, GetSubstructMatch, GenerateDepictionMatching2DStructure.
  • Touches file output: writes sar_analysis_report.html.

Caveats

  • License is open; no explicit licensing conflict stated beyond described license fields. The workflow relies on RDKit functionality and assumes correct data formatting and column detection.
  • The approach assumes the MCS is meaningful (threshold 0.8) and that R-group decomposition yields actionable variable positions; if MCS is too small, the guide recommends clustering first (per the decision framework).
From the SKILL.md

# SAR Analysis --- ## Metadata **Short Description**: Comprehensive guide for performing Structure-Activity Relationship (SAR) analysis using RDKit. **Authors**: Ohagent Team **Version**: 1.0 **Last Updated**: December 2025 **License**: CC BY 4.0 **Commercial Use**: ✅ Allowed --- ## Overview Structure-Activity Relationship (SAR) analysis is a core medicinal-chemistry workflow that relates systematic structural variations of a chemical series to changes in biological activity. The goal is to (1) identify a common scaffold (Maximum Common Substructure, MCS) shared by a series of analogues, (2) decompose each molecule into the scaffold plus its R-group substituents, (3) align all molecules so substituents at equivalent positions are visually comparable, and (4) connect substituent variation to potency to derive testable design hypotheses. This guide formalizes a reproducible RDKit-based SAR workflow that produces an interactive HTML report (compound table with aligned core/R-groups and an activity heatmap) and a written SAR narrative that explicitly contrasts substituents at the same R-position. It is intended for use on activity tables containing SMILES, a compound identifier, and a

What's inside
Steps it walks through
  1. Metadata
  2. Overview
  3. Key Concepts
  4. Maximum Common Substructure (MCS)
  5. R-Group Decomposition
  6. Substructure Alignment for Comparable 2D Depiction
  7. Activity Heatmap and Comparative Analysis
  8. Decision Framework
  9. Best Practices
  10. Common Pitfalls
  11. Workflow
  12. References
More from awesome-bio-agent-skills
All skills →
About this skill
What does the sar-analysis skill do?

Structure-activity relationship (SAR) analysis guide for drug discovery including molecular descriptor analysis, scaffold analysis, and activity cliff detection.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill sar-analysis --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BioTender-max/awesome-bio-agent-skills, a repository with 144 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going