Skip to content

Quickstart

In about five minutes you will open a kinase–inhibitor complex, style it, render a path-traced figure, profile the ligand's interactions, ask the AI assistant a question, and replay the entire session as a .pml script.

Demo · 5-Minute Tour
Quickstart Walkthrough — Open, style, profile ligand, ask AI, export PNG PDB 1T46 (c-KIT + imatinib)

1. Install MolForge

Choose the Desktop App installer (includes a private embedded Python—no setup needed) or install the Python package in its own virtual environment:

Download the installer for your OS from GitHub Releases:

  • macOS (Apple Silicon): MolForge_<ver>_aarch64.dmg
  • macOS (Intel): MolForge_<ver>_x86_64.dmg
  • Windows x64: MolForge_<ver>_x64-setup.exe
  • Linux x86_64: MolForge_<ver>_x86_64.AppImage

See Installation for platform notes and verification.

python3 -m venv .venv && source .venv/bin/activate
pip install "molforge[all]"
molforge --check
git clone https://github.com/tadteo/molforge.git && cd molforge
python3 -m venv .venv && .venv/bin/pip install numpy
scripts/app.sh --release tests/molforge/data/ligand/1t46.pdb.gz

Keep MolForge and real PyMOL in separate environments

Both molforge and Open-Source PyMOL provide a top-level pymol Python package. Always install molforge into a dedicated virtual environment or conda environment.

2. Open a Structure

Every workflow can be driven interactively in the desktop app, from the command line, or from Python:

Launch the app with a local structure (or press Cmd+Shift+O / Ctrl+Shift+O inside the app to fetch 1t46 directly from the PDB):

molforge-app tests/molforge/data/ligand/1t46.pdb.gz
molforge tests/molforge/data/ligand/1t46.pdb.gz

Or fetch online from the PyMOL> prompt:

fetch 1t46
import molforge

s = molforge.Session()
s.load("tests/molforge/data/ligand/1t46.pdb.gz")
print(s.count("all"), "atoms loaded")

3. Style and Focus on the Binding Site

hide everything
show cartoon, polymer
color grey80, polymer
show sticks, organic
color orange, organic and elem C
orient organic
s.hide("everything")
s.show("cartoon", "polymer")
s.color("grey80", "polymer")
s.show("sticks", "organic")
s.color("orange", "organic and elem C")
s.orient("organic")
cx hide; cartoon; color polymer lightgrey; show ligand; style ligand stick; view ligand

In the desktop app you can also press Cmd+K (Ctrl+K on Windows/Linux) to run any action, load a PDB ID, or focus an object from the command palette.

4. Render a Publication Figure

MolForge includes both a real-time GPU renderer (png) and a studio path tracer (pathtrace) with soft shadows, ambient occlusion, and depth of field:

bg_color white
png 1t46.png, width=1600, height=1200, ray=1
pathtrace 1t46-pt.png, 1920, 1080, 256, publication
save_figure 1t46-reproducible.png, 1600, 1200, dpi=300, ray=1

Path-traced render of 1T46

5. Profile the Ligand

MolForge perceives bond orders, protonation states, and non-covalent interactions out of the box (no RDKit required):

ligands
interactions resn STI
ligplot resn STI, sti.svg
ligand_props resn STI

This draws colour-coded 3D interaction dashes (H-bonds, salt bridges, π-stacking, hydrophobic contacts), saves a 2D SVG diagram (sti.svg), and prints physicochemical descriptors (MW, Crippen logP, TPSA, Lipinski/Veber checks).

6. Ask the AI Assistant

Press Cmd+L (Ctrl+L) in the desktop app, run molforge-ai, or connect Claude Code via molforge-mcp, and type:

"Show the residues within 4 Å of imatinib as sticks, label them, and colour hydrogen-bond partners skyblue."

The assistant invokes typed molecular tools, displays each step card, and writes every action to the replayable PyMOL command log. Risky actions (deleting objects, writing files, installing plugins) pause for your approval.

7. Save and Replay Everything

log_open session.pml
# ... work interactively or with the AI assistant ...
log_close
@session.pml
s.save_log("session.pml")
print(s.log)
provenance bundle, ./figure-bundle

Next Steps