[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFG1R3BA0J1DG4Z3AFH1Z9":3,"skill-same:01M7EFG1R3BA0J1DG4Z3AFH1Z9":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EFG1R3BA0J1DG4Z3AFH1Z9","bio-shape-similarity",null,"Performs 3D shape-based similarity searching using ROCS (OpenEye), USRCAT (ultra-fast), Open3DAlign (RDKit), ESPSim (electrostatic), and ShaEP with explicit handling of Tanimoto-Combo (shape + color), shape vs ECFP4 complementarity, conformer-ensemble searching, alignment optimization, and scaffold hopping. Use when searching for shape-mimicking compounds with different scaffolds, identifying bioisosteric replacements, prospective scaffold hopping, or expanding hit series beyond 2D similarity.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-shape-similarity\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-shape-similarity\ndescription: Performs 3D shape-based similarity searching using ROCS (OpenEye), USRCAT (ultra-fast), Open3DAlign (RDKit), ESPSim (electrostatic), and ShaEP with explicit handling of Tanimoto-Combo (shape + color), shape vs ECFP4 complementarity, conformer-ensemble searching, alignment optimization, and scaffold hopping. Use when searching for shape-mimicking compounds with different scaffolds, identifying bioisosteric replacements, prospective scaffold hopping, or expanding hit series beyond 2D similarity.\ntool_type: python\nprimary_tool: RDKit\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"chemoinformatics\u002Fshape-similarity\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: RDKit 2024.09+ (Open3DAlign and USRCAT); official ShaEP syntax checked against ShaEP 1.4.2; ROCS\u002FFastROCS\u002FROCS X are commercial OpenEye products.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Shape Similarity\n\nSearch for compounds with similar 3D shape (and optionally chemical features) to a query molecule. Shape-based screening complements 2D fingerprint search: it can find scaffold-hopped compounds that ECFP4 misses (different scaffolds with similar shape). ROCS (OpenEye) is the industry-standard commercial tool; Open3DAlign (RDKit), USRCAT (Schreyer & Blundell 2012), and ShaEP are open-source alternatives. Modern best practice combines shape with color (chemical-feature similarity) via Tanimoto-Combo: matches share both shape and pharmacophore feature distribution.\n\nFor 2D fingerprint similarity, see `chemoinformatics\u002Fsimilarity-searching`. For pharmacophore search (discrete feature constraints), see `chemoinformatics\u002Fpharmacophore-modeling`. For 3D conformer generation, see `chemoinformatics\u002Fconformer-generation`.\n\n## Shape Method Taxonomy\n\n| Tool | Speed | Approach | Open-source | Fails when |\n|------|-------|----------|-------------|------------|\n| ROCS \u002F FastROCS (OpenEye) | Hardware\u002Fdatabase\u002Fconformer-dependent; vendor reports millions of conformers\u002Fs for FastROCS | Gaussian shape + color | No | License and prepared database |\n| ROCS X | Trillion-scale reaction\u002Fsynthon space on Orion | FastROCS plus Bayesian-bandit sampling | No | Commercial cloud workflow |\n| USRCAT | Very fast alignment-free descriptor comparison | Moment-based + atom types | Yes | Coarse approximation |\n| Open3DAlign (RDKit) | Medium | MMFF atom-type\u002Fcharge-weighted alignment | Yes | Requires compatible typed 3D structures |\n| ShaEP | Benchmark on actual conformers\u002Fhardware | Field-based (shape + ESP) | Free binary; inspect license | Requires valid 3D structures and charges for ESP |\n| ESPSim | Benchmark on actual workload | Electrostatic + shape | Yes | Limited public benchmarks |\n| Phase-Shape (Schrödinger) | commercial | Shape + pharmacophore | No | Commercial |\n| USR (original) | Very fast alignment-free comparison | Moment-based only | Yes | No atom-type information |\n\n**Decision:** Select a shape method by matched retrieval\u002Fenrichment performance, conformer preparation, throughput, licensing, and score semantics. USRCAT is useful as a fast prefilter; Open3DAlign provides an open alignment method; ROCS\u002FFastROCS provide commercial shape\u002Fcolor workflows.\n\n## Decision Tree by Scenario\n\n| Scenario | Method | Notes |\n|----------|--------|-------|\n| Large prepared library | USRCAT pre-filter + Open3DAlign rescore | Choose rescore budget from measured retrieval saturation |\n| Production VS for scaffold hop | ROCS + color (commercial) | Industry standard |\n| Scaffold hopping prospective | Open3DAlign with conformer ensemble | Shape + flexibility |\n| Bioisostere replacement | ROCS color with neutral scoring | Pharmacophore-equivalent matches |\n| Patent space carve-out | Shape constraint + 2D dissimilarity | Combine shape + dissimilar scaffold |\n| Library diversity assessment | USRCAT k-nearest neighbor | Fast |\n| Crystal-bound conformer template | Open3DAlign starting from co-crystal pose | Bioactive shape |\n| Cross-target screening | Shape + pharmacophore feature | Combined screen |\n\n## Tanimoto-Combo Scoring (ROCS Standard)\n\nTanimotoCombo = Tanimoto_shape + Tanimoto_color\n\n- Tanimoto_shape: volume overlap normalized\n- Tanimoto_color: pharmacophore feature overlap\n\nEach component is normalized from 0 to 1, so TanimotoCombo ranges from 0 to 2. It is a sum, not an average. Select follow-up thresholds from a relevant benchmark or enrichment study; a single cutoff is not portable across query preparation, color-force-field settings, and library composition.\n\n## USRCAT (Ultra-Fast Shape Recognition + Atom Types)\n\nUSRCAT (Schreyer & Blundell 2012) extends Ultrafast Shape Recognition (USR) with atom-type information. Each molecule is represented as a 60-dimensional moment vector (12 moments × 5 atom types).\n\n**Goal:** Encode a molecule into the 60-D USRCAT moment vector and score similarity against another molecule for alignment-free shape search.\n\n**Approach:** Parse the SMILES, add hydrogens, generate one 3D conformer with ETKDGv3, compute RDKit USRCAT descriptors, and compare descriptor vectors with RDKit's USR score.\n\n```python\nfrom rdkit.Chem import rdMolDescriptors\n\nmol = Chem.MolFromSmiles('CCO')\nmol = Chem.AddHs(mol)\nAllChem.EmbedMolecule(mol, AllChem.ETKDGv3())\n\ndescriptors = rdMolDescriptors.GetUSRCAT(mol)\n# Returns numpy array of 60 floats: 12 USR moments x 5 atom types\n# (all atoms, hydrophobic, aromatic, acceptor, donor)\n\nsimilarity = rdMolDescriptors.GetUSRScore(desc1, desc2)\n```\n\n**Speed:** Descriptor calculation is linear in atoms and comparison is fixed-length, without pairwise alignment. Benchmark end-to-end throughput on the prepared conformer library before choosing a scale cutoff.\n\n**Limit:** USRCAT is a coarse approximation. Predictive for analog identification; less precise for scaffold hopping.\n\n## Open3DAlign (RDKit)\n\nOpen3DAlign uses MMFF atom types and partial charges to find an atom-based 3D alignment:\n\n**Goal:** Align a target molecule onto a query in 3D and score volume overlap with Open3DAlign.\n\n**Approach:** Build 3D structures for query and target, run `GetO3A`, and call `Align()` to transform the probe in place. `Score()` is the unnormalized O3A objective, not a shape Tanimoto or ROCS TanimotoCombo. If a normalized shape similarity is required, compute `1 - rdShapeHelpers.ShapeTanimotoDist(...)` after alignment.\n\n```python\nfrom rdkit.Chem import rdMolAlign, rdShapeHelpers\n\nquery = Chem.MolFromSmiles('CCC(=O)Nc1ccccc1')\nquery = Chem.AddHs(query)\nAllChem.EmbedMolecule(query, AllChem.ETKDGv3())\n\ntarget = Chem.MolFromSmiles('CCC(=O)Nc1ccc(F)cc1')\ntarget = Chem.AddHs(target)\nAllChem.EmbedMolecule(target, AllChem.ETKDGv3())\n\nO3A = rdMolAlign.GetO3A(target, query)\nrmsd = O3A.Align()  # aligns target to query in place\no3a_score = O3A.Score()\nshape_tanimoto = 1.0 - rdShapeHelpers.ShapeTanimotoDist(target, query)\n```\n\n`GetO3A` finds an alignment between conformers; `Align()` applies it and returns RMSD. Keep `o3a_score` and normalized `shape_tanimoto` distinct in outputs.\n\n**Open3DAlign vs ROCS:** Open3DAlign is open-source and competitive on small benchmarks; slower than ROCS at scale.\n\n## Conformer-Ensemble Shape Searching\n\nFor each library molecule, generate ensemble of conformers; pick best-shape conformer:\n\n**Goal:** Run shape-similarity search over a conformer ensemble per library molecule so bound-conformer-like shapes are recovered.\n\n**Approach:** For each library molecule, add hydrogens, embed n_conf conformers with ETKDGv3, MMFF-optimize, score each conformer against the query with Open3DAlign, and keep the best score per molecule.\n\n```python\ndef shape_search_ensemble(query_mol, library_mols, n_conf=20):\n    hits = []\n    for target in library_mols:\n        target = Chem.AddHs(target)\n        ids = list(AllChem.EmbedMultipleConfs(target, numConfs=n_conf,\n                                               params=AllChem.ETKDGv3()))\n        if not ids:\n            continue\n        if not AllChem.MMFFHasAllMoleculeParams(target):\n            continue\n        optimization = AllChem.MMFFOptimizeMoleculeConfs(target)\n        if any(status != 0 for status, _ in optimization):\n            continue\n\n        scores = []\n        for c in range(target.GetNumConformers()):\n            O3A = rdMolAlign.GetO3A(target, query_mol, prbCid=c)\n            O3A.Align()\n            scores.append(1.0 - rdShapeHelpers.ShapeTanimotoDist(\n                target, query_mol, confId1=c,\n            ))\n        if scores:\n            hits.append((target, max(scores)))\n    return sorted(hits, key=lambda x: x[1], reverse=True)\n```\n\n**Critical:** Results depend on conformer coverage. Use an ensemble sized and validated for the library and query rather than assuming one conformer is representative.\n\n## ESP Similarity (Electrostatic)\n\nShaEP and ESPSim extend shape with electrostatic surface potential overlap. For ESP-relevant pharmacophores (binding pockets with strong electrostatics):\n\n```bash\nshaep -q query.mol2 target.mol2 -s aligned_hits.sdf similarity.txt\n```\n\nESP scoring catches electrostatic-equivalent bioisosteres that pure shape misses (carboxylate vs tetrazole same charge).\n\n## Shape vs ECFP4 Complementarity\n\n| Shape result | ECFP4 result | Interpretation |\n|--------------|--------------|----------------|\n| High | High | Close analog candidate |\n| High | Low | Scaffold-hop candidate |\n| Low | High | Similar 2D chemotype in a different sampled shape |\n| Low | Low | Unrelated by these representations |\n\nCalibrate “high” and “low” on a task-relevant reference set; do not treat the illustrative function defaults below as universal scientific cutoffs.\n\nThe shape >> ECFP4 quadrant is the scaffold-hopping gold:\n\n**Goal:** Identify scaffold-hop candidates that are 3D-shape-similar but 2D-chemotype-dissimilar to the query.\n\n**Approach:** Run the conformer-ensemble shape search, keep hits above a shape Tanimoto cutoff, then retain only those whose ECFP4 Tanimoto to the query is below an ECFP4 dissimilarity cutoff.\n\n```python\n# These thresholds are repository starting defaults only; calibrate both on a\n# task-relevant active\u002Fdecoy or retrieval benchmark before making decisions.\ndef scaffold_hop_candidates(query_mol, library, shape_threshold=0.7,\n                            ecfp_threshold=0.5):\n    shape_hits = shape_search_ensemble(query_mol, library)\n    candidates = []\n    for target, shape_score in shape_hits:\n        if shape_score >= shape_threshold:\n            ecfp_sim = ecfp_tanimoto(query_mol, target)\n            if ecfp_sim \u003C ecfp_threshold:\n                candidates.append((target, shape_score, ecfp_sim))\n    return candidates\n```\n\n## Per-Tool Failure Modes\n\n### USRCAT -- false positive on small molecules\n\n**Trigger:** Library has many fragment-sized compounds.\n\n**Mechanism:** USRCAT moments dominated by overall shape; small molecules look \"similar\" if shape resemble.\n\n**Symptom:** Many fragment hits; not pharmacophore-relevant.\n\n**Fix:** Calibrate size\u002Fproperty filters on the retrieval task and rescore selected hits with an alignment or feature-aware method.\n\n### Open3DAlign -- slow on large library\n\n**Trigger:** Million-compound library, full alignment.\n\n**Mechanism:** Open3DAlign is iterative; O(N) per molecule.\n\n**Symptom:** Hours of compute.\n\n**Fix:** Pre-filter with USRCAT and choose the rescore budget from measured throughput and retrieval saturation.\n\n### Shape only -- wrong stereochemistry match\n\n**Trigger:** Mirror-image of correct binder.\n\n**Mechanism:** Shape-only scoring may insufficiently penalize stereochemical alternatives even though a rigid rotational overlay is not generally invariant to mirror reflection.\n\n**Symptom:** Enantiomer of inactive scores as hit.\n\n**Fix:** Validate hits by 3D pose; check stereochemistry.\n\n### ROCS color -- bioisostere missed\n\n**Trigger:** -COOH replaced by -SO3H or tetrazole.\n\n**Mechanism:** Default color types may not equate these bioisosteres.\n\n**Symptom:** Known bioisostere doesn't score high.\n\n**Fix:** Validate the color-force-field treatment for the bioisostere and compare shape, color, and pharmacophore evidence separately.\n\n### Conformer not bioactive\n\n**Trigger:** Library compound generated conformer is not the bound conformation.\n\n**Mechanism:** ETKDGv3 generates plausible conformers; bound conformer may be higher energy.\n\n**Symptom:** Known active doesn't shape-match query.\n\n**Fix:** Use larger conformer ensemble; weight by Boltzmann; or use CREST + GFN2-xTB for high-quality sampling.\n\n### Field-based methods slower\n\n**Trigger:** ShaEP or ESPSim on production library.\n\n**Mechanism:** Field-based methods compute Gaussian fields per molecule.\n\n**Symptom:** Field calculation or alignment dominates runtime on the prepared library.\n\n**Fix:** Use as second-stage rescore; not primary screen.\n\n## Reconciliation: Shape vs Pharmacophore\n\n| Aspect | Shape | Pharmacophore |\n|--------|-------|----------------|\n| Representation | Volume distribution | Discrete features in space |\n| Captures | Overall bulk | Interaction-relevant features |\n| Speed | Fast (USRCAT) to medium (Open3DAlign) | Fast |\n| Specificity | Task- and query-dependent | Task- and feature-definition-dependent |\n| False positive rate | Measure on a matched benchmark | Measure on a matched benchmark |\n| Best for | Scaffold hopping initial | Scaffold hopping refinement |\n\nShape and pharmacophore searches make different approximations. Compare them alone and in sequence on a matched active\u002Fdecoy or retrieval benchmark before assigning recall\u002Fprecision roles.\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Open3DAlign RMSD is near 0 | Near-exact O3A alignment | Treat as a successful alignment; evaluate the O3A and shape scores separately |\n| USRCAT vector all zeros | Mol has no 3D coords | Generate conformer first |\n| Shape Tanimoto > 1 | Raw O3A or TanimotoCombo mislabeled as shape Tanimoto | Shape Tanimoto is 0-1; O3A is unnormalized and ROCS TanimotoCombo is 0-2 |\n| ROCS very slow | Sequential processing | Use parallel batching |\n| Shape match but no docking pose | Wrong binding pose | Use docking on top shape hits, not shape alone |\n| Missing co-crystal template | Apo or AlphaFold-only structure | Use ligand-based pharmacophore + shape |\n| ShaEP returns no hits | Strict tolerance | Loosen overlap thresholds |\n\n## References\n\n- Hawkins et al., *J. Med. Chem.* 50:74-82 (2007), DOI 10.1021\u002Fjm0603365 -- ROCS virtual-screening comparison.\n- Schreyer AM, Blundell T. *J. Cheminformatics* 4:27 (2012) -- USRCAT (DOI 10.1186\u002F1758-2946-4-27).\n- Vainio, Puranen & Johnson, *J. Chem. Inf. Model.* 49:492-502 (2009), DOI 10.1021\u002Fci800315d -- ShaEP.\n- Tosco, Balle & Shiri, *J. Comput. Aided Mol. Des.* 25:777-783 (2011), DOI 10.1007\u002Fs10822-011-9462-9 -- Open3DALIGN.\n- RDKit O3A API: https:\u002F\u002Fwww.rdkit.org\u002Fdocs\u002Fsource\u002Frdkit.Chem.rdMolAlign.html\n- RDKit shape API: https:\u002F\u002Fwww.rdkit.org\u002Fdocs\u002Fsource\u002Frdkit.Chem.rdShapeHelpers.html\n- ShaEP official documentation\u002Fexamples: https:\u002F\u002Fcheminformatics.fi\u002F\n- OpenEye ROCS X product documentation: https:\u002F\u002Fwww.eyesopen.com\u002Frocsx\n\n## Related Skills\n\n- chemoinformatics\u002Fmolecular-io - Parse query and library\n- chemoinformatics\u002Fconformer-generation - Generate 3D conformer ensembles\n- chemoinformatics\u002Fsimilarity-searching - 2D similarity comparison\n- chemoinformatics\u002Fpharmacophore-modeling - Pharmacophore alternative\n- chemoinformatics\u002Fscaffold-analysis - 2D scaffold analysis\n- chemoinformatics\u002Fvirtual-screening - Shape as pre-filter to docking\n","## Version Compatibility\n\nReference examples tested with: RDKit 2024.09+ (Open3DAlign and USRCAT); official ShaEP syntax checked against ShaEP 1.4.2; ROCS\u002FFastROCS\u002FROCS X are commercial OpenEye products.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Shape Similarity\n\nSearch for compounds with similar 3D shape (and optionally chemical features) to a query molecule. Shape-based screening complements 2D fingerprint search: it can find scaffold-hopped compounds that ECFP4 misses (different scaffolds with similar shape). ROCS (OpenEye) is the industry-standard commercial tool; Open3DAlign (RDKit), USRCAT (Schreyer & Blundell 2012), and ShaEP are open-source alternatives. Modern best practice combines shape with color (chemical-feature similarity) via Tanimoto-Combo: matches share both shape and pharmacophore feature distribution.\n\nFor 2D fingerprint similarity, see `chemoinformatics\u002Fsimilarity-searching`. For pharmacophore search (discrete feature constraints), see `chemoinformatics\u002Fpharmacophore-modeling`. For 3D conformer generation, see `chemoinformatics\u002Fconformer-generation`.\n\n## Shape Method Taxonomy\n\n| Tool | Speed | Approach | Open-source | Fails when |\n|------|-------|----------|-------------|------------|\n| ROCS \u002F FastROCS (OpenEye) | Hardware\u002Fdatabase\u002Fconformer-dependent; vendor reports millions of conformers\u002Fs for FastROCS | Gaussian shape + color | No | License and prepared database |\n| ROCS X | Trillion-scale reaction\u002Fsynthon space on Orion | FastROCS plus Bayesian-bandit sampling | No | Commercial cloud workflow |\n| USRCAT | Very fast alignment-free descriptor comparison | Moment-based + atom types | Yes | Coarse approximation |\n| Open3DAlign (RDKit) | Medium | MMFF atom-type\u002Fcharge-weighted alignment | Yes | Requires compatible typed 3D structures |\n| ShaEP | Benchmark on actual conformers\u002Fhardware | Field-based (shape + ESP) | Free binary; inspect license | Requires valid 3D structures and charges for ESP |\n| ESPSim | Benchmark on actual workload | Electrostatic + shape | Yes | Limited public benchmarks |\n| Phase-Shape (Schrödinger) | commercial | Shape + pharmacophore | No | Commercial |\n| USR (original) | Very fast alignment-free comparison | Moment-based only | Yes | No atom-type information |\n\n**Decision:** Select a shape method by matched retrieval\u002Fenrichment performance, conformer preparation, throughput, licensing, and score semantics. USRCAT is useful as a fast prefilter; Open3DAlign provides an open alignment method; ROCS\u002FFastROCS provide commercial shape\u002Fcolor workflows.\n\n## Decision Tree by Scenario\n\n| Scenario | Method | Notes |\n|----------|--------|-------|\n| Large prepared library | USRCAT pre-filter + Open3DAlign rescore | Choose rescore budget from measured retrieval saturation |\n| Production VS for scaffold hop | ROCS + color (commercial) | Industry standard |\n| Scaffold hopping prospective | Open3DAlign with conformer ensemble | Shape + flexibility |\n| Bioisostere replacement | ROCS color with neutral scoring | Pharmacophore-equivalent matches |\n| Patent space carve-out | Shape constraint + 2D dissimilarity | Combine shape + dissimilar scaffold |\n| Library diversity assessment | USRCAT k-nearest neighbor | Fast |\n| Crystal-bound conformer template | Open3DAlign starting from co-crystal pose | Bioactive shape |\n| Cross-target screening | Shape + pharmacophore feature | Combined screen |\n\n## Tanimoto-Combo Scoring (ROCS Standard)\n\nTanimotoCombo = Tanimoto_shape + Tanimoto_color\n\n- Tanimoto_shape: volume overlap normalized\n- Tanimoto_color: pharmacophore feature overlap\n\nEach component is normalized from 0 to 1, so TanimotoCombo ranges from 0 to 2. It is a sum, not an average. Select follow-up thresholds from a relevant benchmark or enrichment study; a single cutoff is not portable across query preparation, color-force-field settings, and library composition.\n\n## USRCAT (Ultra-Fast Shape Recognition + Atom Types)\n\nUSRCAT (Schreyer & Blundell 2012) extends Ultrafast Shape Recognition (USR) with atom-type information. Each molecule is represented as a 60-dimensional moment vector (12 moments × 5 atom types).\n\n**Goal:** Encode a molecule into the 60-D USRCAT moment vector and score similarity against another molecule for alignment-free shape search.\n\n**Approach:** Parse the SMILES, add hydrogens, generate one 3D conformer with ETKDGv3, compute RDKit USRCAT descriptors, and compare descriptor vectors with RDKit's USR score.\n\n```python\nfrom rdkit.Chem import rdMolDescriptors\n\nmol = Chem.MolFromSmiles('CCO')\nmol = Chem.AddHs(mol)\nAllChem.EmbedMolecule(mol, AllChem.ETKDGv3())\n\ndescriptors = rdMolDescriptors.GetUSRCAT(mol)\n# Returns numpy array of 60 floats: 12 USR moments x 5 atom types\n# (all atoms, hydrophobic, aromatic, acceptor, donor)\n\nsimilarity = rdMolDescriptors.GetUSRScore(desc1, desc2)\n```\n\n**Speed:** Descriptor calculation is linear in atoms and comparison is fixed-length, without pairwise alignment. Benchmark end-to-end throughput on the prepared conformer library before choosing a scale cutoff.\n\n**Limit:** USRCAT is a coarse approximation. Predictive for analog identification; less precise for scaffold hopping.\n\n## Open3DAlign (RDKit)\n\nOpen3DAlign uses MMFF atom types and partial charges to find an atom-based 3D alignment:\n\n**Goal:** Align a target molecule onto a query in 3D and score volume overlap with Open3DAlign.\n\n**Approach:** Build 3D structures for query and target, run `GetO3A`, and call `Align()` to transform the probe in place. `Score()` is the unnormalized O3A objective, not a shape Tanimoto or ROCS TanimotoCombo. If a normalized shape similarity is required, compute `1 - rdShapeHelpers.ShapeTanimotoDist(...)` after alignment.\n\n```python\nfrom rdkit.Chem import rdMolAlign, rdShapeHelpers\n\nquery = Chem.MolFromSmiles('CCC(=O)Nc1ccccc1')\nquery = Chem.AddHs(query)\nAllChem.EmbedMolecule(query, AllChem.ETKDGv3())\n\ntarget = Chem.MolFromSmiles('CCC(=O)Nc1ccc(F)cc1')\ntarget = Chem.AddHs(target)\nAllChem.EmbedMolecule(target, AllChem.ETKDGv3())\n\nO3A = rdMolAlign.GetO3A(target, query)\nrmsd = O3A.Align()  # aligns target to query in place\no3a_score = O3A.Score()\nshape_tanimoto = 1.0 - rdShapeHelpers.ShapeTanimotoDist(target, query)\n```\n\n`GetO3A` finds an alignment between conformers; `Align()` applies it and returns RMSD. Keep `o3a_score` and normalized `shape_tanimoto` distinct in outputs.\n\n**Open3DAlign vs ROCS:** Open3DAlign is open-source and competitive on small benchmarks; slower than ROCS at scale.\n\n## Conformer-Ensemble Shape Searching\n\nFor each library molecule, generate ensemble of conformers; pick best-shape conformer:\n\n**Goal:** Run shape-similarity search over a conformer ensemble per library molecule so bound-conformer-like shapes are recovered.\n\n**Approach:** For each library molecule, add hydrogens, embed n_conf conformers with ETKDGv3, MMFF-optimize, score each conformer against the query with Open3DAlign, and keep the best score per molecule.\n\n```python\ndef shape_search_ensemble(query_mol, library_mols, n_conf=20):\n    hits = []\n    for target in library_mols:\n        target = Chem.AddHs(target)\n        ids = list(AllChem.EmbedMultipleConfs(target, numConfs=n_conf,\n                                               params=AllChem.ETKDGv3()))\n        if not ids:\n            continue\n        if not AllChem.MMFFHasAllMoleculeParams(target):\n            continue\n        optimization = AllChem.MMFFOptimizeMoleculeConfs(target)\n        if any(status != 0 for status, _ in optimization):\n            continue\n\n        scores = []\n        for c in range(target.GetNumConformers()):\n            O3A = rdMolAlign.GetO3A(target, query_mol, prbCid=c)\n            O3A.Align()\n            scores.append(1.0 - rdShapeHelpers.ShapeTanimotoDist(\n                target, query_mol, confId1=c,\n            ))\n        if scores:\n            hits.append((target, max(scores)))\n    return sorted(hits, key=lambda x: x[1], reverse=True)\n```\n\n**Critical:** Results depend on conformer coverage. Use an ensemble sized and validated for the library and query rather than assuming one conformer is representative.\n\n## ESP Similarity (Electrostatic)\n\nShaEP and ESPSim extend shape with electrostatic surface potential overlap. For ESP-relevant pharmacophores (binding pockets with strong electrostatics):\n\n```bash\nshaep -q query.mol2 target.mol2 -s aligned_hits.sdf similarity.txt\n```\n\nESP scoring catches electrostatic-equivalent bioisosteres that pure shape misses (carboxylate vs tetrazole same charge).\n\n## Shape vs ECFP4 Complementarity\n\n| Shape result | ECFP4 result | Interpretation |\n|--------------|--------------|----------------|\n| High | High | Close analog candidate |\n| High | Low | Scaffold-hop candidate |\n| Low | High | Similar 2D chemotype in a different sampled shape |\n| Low | Low | Unrelated by these representations |\n\nCalibrate “high” and “low” on a task-relevant reference set; do not treat the illustrative function defaults below as universal scientific cutoffs.\n\nThe shape >> ECFP4 quadrant is the scaffold-hopping gold:\n\n**Goal:** Identify scaffold-hop candidates that are 3D-shape-similar but 2D-chemotype-dissimilar to the query.\n\n**Approach:** Run the conformer-ensemble shape search, keep hits above a shape Tanimoto cutoff, then retain only those whose ECFP4 Tanimoto to the query is below an ECFP4 dissimilarity cutoff.\n\n```python\n# These thresholds are repository starting defaults only; calibrate both on a\n# task-relevant active\u002Fdecoy or retrieval benchmark before making decisions.\ndef scaffold_hop_candidates(query_mol, library, shape_threshold=0.7,\n                            ecfp_threshold=0.5):\n    shape_hits = shape_search_ensemble(query_mol, library)\n    candidates = []\n    for target, shape_score in shape_hits:\n        if shape_score >= shape_threshold:\n            ecfp_sim = ecfp_tanimoto(query_mol, target)\n            if ecfp_sim \u003C ecfp_threshold:\n                candidates.append((target, shape_score, ecfp_sim))\n    return candidates\n```\n\n## Per-Tool Failure Modes\n\n### USRCAT -- false positive on small molecules\n\n**Trigger:** Library has many fragment-sized compounds.\n\n**Mechanism:** USRCAT moments dominated by overall shape; small molecules look \"similar\" if shape resemble.\n\n**Symptom:** Many fragment hits; not pharmacophore-relevant.\n\n**Fix:** Calibrate size\u002Fproperty filters on the retrieval task and rescore selected hits with an alignment or feature-aware method.\n\n### Open3DAlign -- slow on large library\n\n**Trigger:** Million-compound library, full alignment.\n\n**Mechanism:** Open3DAlign is iterative; O(N) per molecule.\n\n**Symptom:** Hours of compute.\n\n**Fix:** Pre-filter with USRCAT and choose the rescore budget from measured throughput and retrieval saturation.\n\n### Shape only -- wrong stereochemistry match\n\n**Trigger:** Mirror-image of correct binder.\n\n**Mechanism:** Shape-only scoring may insufficiently penalize stereochemical alternatives even though a rigid rotational overlay is not generally invariant to mirror reflection.\n\n**Symptom:** Enantiomer of inactive scores as hit.\n\n**Fix:** Validate hits by 3D pose; check stereochemistry.\n\n### ROCS color -- bioisostere missed\n\n**Trigger:** -COOH replaced by -SO3H or tetrazole.\n\n**Mechanism:** Default color types may not equate these bioisosteres.\n\n**Symptom:** Known bioisostere doesn't score high.\n\n**Fix:** Validate the color-force-field treatment for the bioisostere and compare shape, color, and pharmacophore evidence separately.\n\n### Conformer not bioactive\n\n**Trigger:** Library compound generated conformer is not the bound conformation.\n\n**Mechanism:** ETKDGv3 generates plausible conformers; bound conformer may be higher energy.\n\n**Symptom:** Known active doesn't shape-match query.\n\n**Fix:** Use larger conformer ensemble; weight by Boltzmann; or use CREST + GFN2-xTB for high-quality sampling.\n\n### Field-based methods slower\n\n**Trigger:** ShaEP or ESPSim on production library.\n\n**Mechanism:** Field-based methods compute Gaussian fields per molecule.\n\n**Symptom:** Field calculation or alignment dominates runtime on the prepared library.\n\n**Fix:** Use as second-stage rescore; not primary screen.\n\n## Reconciliation: Shape vs Pharmacophore\n\n| Aspect | Shape | Pharmacophore |\n|--------|-------|----------------|\n| Representation | Volume distribution | Discrete features in space |\n| Captures | Overall bulk | Interaction-relevant features |\n| Speed | Fast (USRCAT) to medium (Open3DAlign) | Fast |\n| Specificity | Task- and query-dependent | Task- and feature-definition-dependent |\n| False positive rate | Measure on a matched benchmark | Measure on a matched benchmark |\n| Best for | Scaffold hopping initial | Scaffold hopping refinement |\n\nShape and pharmacophore searches make different approximations. Compare them alone and in sequence on a matched active\u002Fdecoy or retrieval benchmark before assigning recall\u002Fprecision roles.\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Open3DAlign RMSD is near 0 | Near-exact O3A alignment | Treat as a successful alignment; evaluate the O3A and shape scores separately |\n| USRCAT vector all zeros | Mol has no 3D coords | Generate conformer first |\n| Shape Tanimoto > 1 | Raw O3A or TanimotoCombo mislabeled as shape Tanimoto | Shape Tanimoto is 0-1; O3A is unnormalized and ROCS TanimotoCombo is 0-2 |\n| ROCS very slow | Sequential processing | Use parallel batching |\n| Shape match but no docking pose | Wrong binding pose | Use docking on top shape hits, not shape alone |\n| Missing co-crystal template | Apo or AlphaFold-only structure | Use ligand-based pharmacophore + shape |\n| ShaEP returns no hits | Strict tolerance | Loosen overlap thresholds |\n\n## References\n\n- Hawkins et al., *J. Med. Chem.* 50:74-82 (2007), DOI 10.1021\u002Fjm0603365 -- ROCS virtual-screening comparison.\n- Schreyer AM, Blundell T. *J. Cheminformatics* 4:27 (2012) -- USRCAT (DOI 10.1186\u002F1758-2946-4-27).\n- Vainio, Puranen & Johnson, *J. Chem. Inf. Model.* 49:492-502 (2009), DOI 10.1021\u002Fci800315d -- ShaEP.\n- Tosco, Balle & Shiri, *J. Comput. Aided Mol. Des.* 25:777-783 (2011), DOI 10.1007\u002Fs10822-011-9462-9 -- Open3DALIGN.\n- RDKit O3A API: https:\u002F\u002Fwww.rdkit.org\u002Fdocs\u002Fsource\u002Frdkit.Chem.rdMolAlign.html\n- RDKit shape API: https:\u002F\u002Fwww.rdkit.org\u002Fdocs\u002Fsource\u002Frdkit.Chem.rdShapeHelpers.html\n- ShaEP official documentation\u002Fexamples: https:\u002F\u002Fcheminformatics.fi\u002F\n- OpenEye ROCS X product documentation: https:\u002F\u002Fwww.eyesopen.com\u002Frocsx\n\n## Related Skills\n\n- chemoinformatics\u002Fmolecular-io - Parse query and library\n- chemoinformatics\u002Fconformer-generation - Generate 3D conformer ensembles\n- chemoinformatics\u002Fsimilarity-searching - 2D similarity comparison\n- chemoinformatics\u002Fpharmacophore-modeling - Pharmacophore alternative\n- chemoinformatics\u002Fscaffold-analysis - 2D scaffold analysis\n- chemoinformatics\u002Fvirtual-screening - Shape as pre-filter to docking\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","python","2026-09-20","chemoinformatics\u002Fshape-similarity\u002FSKILL.md","RDKit","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-shape-similarity","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-shape-similarity",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-shape-similarity",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-shape-similarity","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-shape-similarity\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fshape_search.py","SCRIPT","脚本",4609,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-shape-similarity\u002Fexamples\u002Fshape_search.py",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",3066,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-shape-similarity\u002Fusage-guide.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":70},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":70},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":70},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":70},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":70},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]