chem-conformer-search
Skill174 starsChanged 6 months agoMITView on GitHub
Generate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting.
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-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-molecular-fingerprintsSkill
- 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
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 102
Environment: Use the conda environment matching the chosen model: mace-agent (MACE), fairchem-agent (FairChem/UMA), or matgl-agent (MatGL).
- Distinctive: line 105
Non-periodic: All conformers are treated as non-periodic (isolated molecules).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Molecular Conformer Search & Ranking
Goal
Generate a diverse ensemble of low-energy conformers for a given molecule. The workflow combines:
- Stochastic sampling using RDKit's ETKDG algorithm (Experimental Torsion Distance Geometry).
- High-accuracy relaxation using Machine Learning Interatomic Potentials (MLIPs) to get near-DFT quality geometries and energies.
- Deduplication and Boltzmann weighting to identify the most relevant conformers at finite temperature.
[!IMPORTANT] This skill is optimized for organic molecules and uses
MACE-OFF23models by default. For inorganic clusters, switch toMACE-OMATorMatGLmodels.
Recommended Models
- MACE-OFF23:
MACE-OFF23-small(default),MACE-OFF23-medium— trained on organic molecules (Env:mace-agent) - MACE-MH:
MACE-MH-1with headomol— multi-head model with molecular head (Env:mace-agent) - UMA:
uma-s-1p1with headomol— general molecular model (Env:fairchem-agent)
1. Prerequisites
- Conda Environment:
mace-agent(recommended as it includes bothmaceandrdkit). - Input: SMILES string or a structure file (
.xyz,.sdf,.mol2,.pdb).
2. Methodology
- Generation: Generate
Ninitial conformers using RDKit'sEmbedMultipleConfswith ETKDGv3. - Relaxation: Optimize the geometry of each conformer using the selected MLIP (fmax = 0.01 eV/Å).
- Deduplication/Clustering: Filter redundant conformers by simple RMSD thresholding (default), Hierarchical clustering, or K-Means clustering. Only the lowest-energy conformer in each cluster is kept.
- Ranking: Sort unique conformers by energy.
- Boltzmann Weighting: Calculate population probability $P_i$ at temperature $T$: $$P_i = \frac{e^{-(E_i - E_{min}) / k_B T}}{\sum_j e^{-(E_j - E_{min}) / k_B T}}$$
3. Usage
Basic Usage (SMILES)
Generate 30 conformers for a molecule (e.g., aspirin) and relax with MACE-OFF23:
# Env: mace-agent
python .agents/skills/chem-conformer-search/scripts/conformer_search.py \
--smiles "CC(=O)Oc1ccccc1C(=O)O" \
--num_conformers 30 \
--output_dir research/aspirin_conformersAdvanced Usage (Structure File + Options)
# Env: mace-agent
python .agents/skills/chem-conformer-search/scripts/conformer_search.py \
--structure my_molecule.sdf \
--num_conformers 100 \
--rms_threshold 0.5 \
--dedup_threshold 0.1 \
--temperature 298.15 \
--model_type mace \
--model_name MACE-OFF23-small \
--device cuda \
--output_dir research/my_molecule_searchKey Parameters
| Argument | Default | Description |
--smiles | - | SMILES string of the molecule |
--structure | - | Path to input structure file (alternative to SMILES) |
--num_conformers | 50 | Number of initial conformers to generate with RDKit |
--rms_threshold | 0.2 | RDKit pruning threshold (Å) to discard similar initial conformers |
--clustering | rmsd | Method to filter conformers: rmsd, hierarchical, or kmeans |
--dedup_threshold | 0.1 | Post-relaxation RMSD threshold (Å) to merge identical conformers or cut for hierarchical |
--num_clusters | 5 | Number of clusters if --clustering kmeans is used |
--energy_threshold | 0.5 | Max energy above global minimum (eV) to keep before RMSD comparison. Set to 0 to disable |
--fmax | 0.01 | Force convergence criterion for relaxation (eV/Å) |
--temperature | 298.15 | Temperature (K) for Boltzmann weighting |
--model_type | mace | MLIP backend (mace, matgl, fairchem) |
--model_name | MACE-OFF23-small | Specific model checkpoint to use |
4. Output Files
The output directory will contain:
conformer_results.json: A summary file containing:- List of unique conformers with their energies, relative energies, and Boltzmann weights.
- Paths to the corresponding XYZ files.
- Metadata (model used, parameters).
conf_000.xyz,conf_001.xyz, ...: The relaxed structures of the unique conformers, sorted by energy (000 is the global minimum found).
5. Examples
See examples/aspirin for a complete example run on Acetylsalicylic acid.
6. Constraints
- Environment: Use the conda environment matching the chosen model:
mace-agent(MACE),fairchem-agent(FairChem/UMA), ormatgl-agent(MatGL). All include RDKit. - Input: Either
--smilesor--structuremust be provided, but not both. - Molecule Type: Optimized for organic molecules. For inorganic clusters, switch to
MACE-OMATorMatGLmodels. - Non-periodic: All conformers are treated as non-periodic (isolated molecules).
7. References
- Riniker, S.; Landrum, G. A., "Better Informed Distance Geometry: Using What We Know To Improve Conformation Generation", J. Chem. Inf. Model., 2015, 55, 2562. DOI
Author: Bowen Deng Contact: GitHub @learningmatter-mit
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.

