Skip to main content

FAMEX: Fast Mechanistic Explorer

FAMEX is a command-line and Python API for molecular geometry optimization with machine learning potentials. It supports minima optimization, transition state searches, and reaction path calculations.

Python 3.11+ PyPI License: MIT

Quick Start

Installation

pip install famex
# Or from source:
git clone https://github.com/rlaplaza-lab/famex.git && cd famex && pip install -e .

Install a machine learning backend separately (primary use case):

Backend Installation Notes
aimnet2 pip install torch Simplest install; no dependency conflicts; analytical Hessian
uma pip install "fairchem-core>=2.22.0" or pip install famex[uma] Default backend (model: uma-s-1p2); analytical Hessian
mace pip install mace-torch Conflicts with UMA; analytical Hessian
orb pip install "orb-models>=0.7.0" or pip install famex[orb] OrbMol-v2 and Orb-v3; Python 3.12+; analytical Hessian for conservative models; finite-difference otherwise
so3lr pip install so3lr Custom models; analytical Hessian via JAX
pet pip install upet or pip install famex[pet] PET-MAD potential (Python 3.11+); analytical Hessian

Optional classical quantum chemistry (same CLI; slower): tblite (pip install tblite, GFN-xTB, finite-difference Hessians) and pyscf (pip install famex[pyscf], default B3LYP-D3BJ / def2-SVP, analytical Hessian).

SMILES and PubChem are optional structure inputs (not separate CLI modes). Install an embedder and pass SMILES or pubchem:NAME / cid: / a numeric CID to minima, ts, or path:

pip install famex[smiles]   # UFF distance geometry (default --embedder)
pip install famex[rdkit]    # RDKit ETKDGv3
famex minima --strategy local "CCO" --backend aimnet2
famex minima --strategy local "CCO" --embedder rdkit --backend aimnet2
famex minima --strategy local pubchem:aspirin --backend aimnet2

Note: Python 3.11+ required. MACE and UMA conflict - use separate environments.

Your First Optimization

Command Line:

# Create a test structure
echo "3
Water
O 0.0 0.0 0.0
H 0.0 0.0 1.0
H 0.0 1.0 0.0" > water.xyz

# Optimize it (default backend is uma; use aimnet2 for torch-only install)
famex minima --strategy local water.xyz
# famex minima --strategy local water.xyz --backend aimnet2

Python API:

import famex

# Load and optimize
explorer = famex.Explorer.from_file("water.xyz", backend="aimnet2", target="minima", strategy="local")
result = explorer.run(fmax=0.05, steps=1000)

# Save results
explorer.save_structure(result["optimized_atoms"], "water_optimized.xyz")
print(f"Final energy: {result['optimized_atoms'].get_potential_energy():.6f} eV")

Key Features

  • Multiple machine learning backends (UMA, AIMNet2, MACE, SO3LR, Orb, PET); optional xTB/DFT via TBLite/PySCF
  • GPU acceleration with CUDA
  • Target/strategy commands (minima, ts, path)
  • Path methods: Nudged Elastic Band (NEB), Climbing-Image NEB (CI-NEB), Intrinsic Reaction Coordinate (IRC), growing string
  • Frequency analysis, thermodynamics, and vibrational-mode XYZ animations
  • Command-line and Python API
  • Geometry files via the Atomic Simulation Environment (ASE): XYZ, CIF, PDB, and others
  • SMILES / PubChem as structure inputs (pip install famex[smiles] or famex[rdkit]; use pubchem:NAME, cid:, or a numeric CID)

Documentation

  • Documentation index - Overview and defaults
  • User Guide - Complete reference for CLI, Python API, and backends
  • Tutorials - Hands-on guides for optimization and transition states
  • FAQ - Troubleshooting and common questions

Examples

Runnable demos and benchmarks: examples/README.md.

# Transition state search
famex ts --strategy interpolate reactant.xyz --product product.xyz

# NEB reaction path
famex path --strategy neb reactant.xyz product.xyz --npoints 11

# IRC from transition state
famex path --strategy irc ts.xyz --direction both

Community and Support

Citation

@software{famex2026,
  title={FAMEX: Fast Mechanistic Explorer},
  author={FAMEX Development Team},
  year={2026},
  url={https://github.com/rlaplaza-lab/famex}
}

Metadata

Release files for famex 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for famex 0.2.3
File Size Uploaded Provenance Actions
famex-0.2.3.tar.gz 410.0 kB Without provenance Details for famex-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for famex 0.2.3
File Interpreter ABI Platform Actions
famex-0.2.3-py3-none-any.whl Python 3 none any Details for famex-0.2.3-py3-none-any.whl

Total release size: 682.2 kB

Release files / famex-0.2.3.tar.gz

Download URL famex-0.2.3.tar.gz
Size 410.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d192d2c34228a424c844a8f673d206cbdeaf3889c7a173b29afa91e1a447a865
BLAKE2b-256 checksum
How to use checksums
ebfca28843071a186586dd77ab6d577e56bbb30d714165cd8f75245e7ec70251
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / famex-0.2.3-py3-none-any.whl

Download URL famex-0.2.3-py3-none-any.whl
Size 272.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd07d7a222d59ddd6d5ddd5e492ba1fa7693575f96538c40444ec97a4c258fd4
BLAKE2b-256 checksum
How to use checksums
2467f178c45221d6c6fd9929657219ae917379682a5d47a91ef19881294cc3c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for famex 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page