drug-molecular-fingerprints
Skill174 starsChanged 6 months agoMITView on GitHub
Compute Morgan/ECFP fingerprints, Tanimoto similarity, and optional Butina clusters/heatmaps for small-molecule comparison.
In this repository133 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/atomisticskills.mdcCursor rule
- .cursor/rules/use-agent-skills.mdcCursor rule
- chem-bond-dissociationSkill
- chem-conformer-searchSkill
- chem-db-mofSkill
- chem-db-qmofSkill
- chem-db-spectraSkill
- chem-dft-orca-advanced-calculationSkill
- chem-dft-orca-optimizationSkill
- chem-dft-orca-singlepointSkill
- chem-docking-voidSkill
- chem-hazard-toxicitySkill
- chem-irc-verificationSkill
- chem-msms-predictSkill
- chem-neb-barrierSkill
- chem-nmr-analysisSkill
- chem-nmr-predictSkill
- chem-react-otSkill
- chem-similarity-searchSkill
- chem-solution-mdSkill
- chem-sorption-gcmcSkill
- chem-sorption-relaxSkill
- chem-sorption-widomSkill
- chem-spectrum-matcherSkill
- chem-thermochemistrySkill
- chem-ts-optimizationSkill
- chem-vibrationSkill
- drug-admet-predictionSkill
- drug-binding-site-definitionSkill
- drug-bioactivity-assaySkill
- drug-complex-system-builderSkill
- drug-db-chemblSkill
- drug-db-pdbSkill
- drug-db-pubchemSkill
- drug-docking-analysisSkill
- drug-docking-vinaSkill
- drug-ligand-prepSkill
- drug-mmpbsa-gbsaSkill
- drug-pocket-detectionSkill
- drug-pose-validationSkill
- drug-protein-ligand-mdSkill
- drug-protein-prepSkill
- drug-redocking-rmsdSkill
- drug-retrosynthesisSkill
- drug-trajectory-analysisSkill
- general-arxiv-searchSkill
- general-biorxiv-searchSkill
- general-chemical-literatureSkill
- general-chemical-pricingSkill
- general-deep-researchSkill
- general-fair-data-reviewSkill
- general-patent-searchSkill
- general-peer-reviewSkill
- general-plot-digitizerSkill
- general-presentationSkill
- general-property-unitsSkill
- general-publisher-access-guardSkill
- general-query-literature-databaseSkill
- The first 60 shown.
The file
Files
Molecular Fingerprints
Goal
To compute circular Morgan fingerprints (ECFP-style; default ECFP4 with radius=2) for a set of compounds, then calculate pairwise Tanimoto similarity for library comparison. Optionally perform Butina clustering for diversity analysis and generate a similarity heatmap for small sets.
This skill is commonly used for hit expansion, SAR triage, compound library diversity assessment, and applicability-domain style analysis.
Instructions
The drugdisc MCP server provides a compute_molecular_fingerprints tool that can be called directly:
Basic usage with SMILES file:
mcp_drugdisc_compute_molecular_fingerprints(
smiles_file="compounds.smi",
radius=2,
fp_size=2048,
compute_similarity=True,
output_file="similarity.json"
)With Butina clustering:
mcp_drugdisc_compute_molecular_fingerprints(
smiles_file="library.smi",
cluster=True,
cluster_cutoff=0.7,
output_file="clustered.json"
)With similarity heatmap (small molecule sets, ≤250 compounds):
mcp_drugdisc_compute_molecular_fingerprints(
smiles_file="hits.smi",
save_heatmap="heatmap.png",
output_file="similarity.json"
)Feature Morgan (FCFP-like) fingerprints:
mcp_drugdisc_compute_molecular_fingerprints(
smiles_file="compounds.smi",
use_features=True,
output_file="fcfp_similarity.json"
)Chirality-aware fingerprints:
mcp_drugdisc_compute_molecular_fingerprints(
smiles_file="enantiomers.smi",
use_chirality=True,
output_file="chiral_sim.json"
)Examples
SMILES file format
CCO ethanol
CCCO propanol
c1ccccc1 benzene
c1ccc(cc1)O phenolBasic similarity analysis
mcp_drugdisc_compute_molecular_fingerprints(
smiles_file=".agents/skills/drug-molecular-fingerprints/examples/compounds.smi",
output_file="similarity.json"
)Diversity-based clustering for library selection
mcp_drugdisc_compute_molecular_fingerprints(
smiles_file="screening_library.smi",
cluster=True,
cluster_cutoff=0.5,
output_file="diverse_clusters.json"
)Output Format
The tool returns a JSON with:
n_compounds: Total number of input compoundsn_valid: Number of successfully processed compoundscompounds: List of compound info (SMILES, name, validity, fingerprint bits)similarity_matrix: Pairwise Tanimoto similarity (ifcompute_similarity=True)clusters: Butina clustering results (ifcluster=True)
Constraints
- MCP Server: Requires
drugdiscMCP server - Dependencies: RDKit (Chem, rdFingerprintGenerator, DataStructs, ML.Cluster.Butina)
- SMILES file format: One molecule per line,
SMILES[whitespace]NAME(NAME optional),#for comments - Fingerprint defaults: Morgan radius=2 (ECFP4-like), 2048 bits
- Heatmap rendering: Limited to ≤250 compounds due to memory constraints
- Similarity metric: Tanimoto coefficient (Jaccard index for bit vectors)
- Clustering algorithm: Butina (leader-picker style); cutoff = similarity threshold (not distance)
Author: Matthew Cox Contact: GitHub @mcox3406
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

