agentleFS
LiorZLiorZ/protein-design-skills/skills/placer/SKILL.md

placer

Skill8 starsChanged 6 months agoMITView on GitHub

Run PLACER (Protein-Ligand Atomistic Conformational Ensemble Resolver, formerly ChemNet) — a Baker-lab graph neural network that operates entirely at the atomic level to denoise / rebuild small-molecule and protein-sidechain atom positions, and to generate stochastic ensembles that model conformational heterogeneity. Use this skill when: (1) Docking a ligand that is **already present** in an input PDB / mmCIF into its binding pocket and scoring pose confidence (the headline use case), (2) Predicting / rebuilding protein **side-chain** conformations around a ligand or in an apo pocket (sidechain repacking with confidence), (3) Generating a conformational **ensemble** (50-200 stochastic samples) of a ligand + pocket to study heterogeneity rather than a single pose, (4) Validating designed enzyme / heme-binder / metalloprotein active sites by checking whether PLACER re-resolves the intended ligand pose at low prmsd, (5) Co-predicting **multiple ligands** in one pocket (`--predict_multi`), keeping cofactors (e.g. heme) fixed while docking an inhibitor, (6) Refining atom typing / bond perception of a ligand via an SDF / MOL2 reference so aromatic rings stay planar (`--ligand_file`), (7) Predicting with **non-canonical amino acids** or custom residues supplied as a residue JSON (added to the internal CCD library), (8) Mutating positions in silico (`--mutate`) and re-resolving the local structure, optionally with the small molecule removed (`--no-use_sm`), (9) Adding explicit inter-atomic **bonds** (`--bonds`) or steering the crop / corruption centers for refinement or (loose) global docking.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. SunCherry/agentic-AI_analog_IC_auto-designer★ 4same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository15 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run it as apptainer exec --nv placer.sif python my_script.py.

    line 209
  2. Very specific:

    Ligand must be in the input with coordinates: No SMILES→pose. No apo+SDF docking.

    line 216
  3. Very specific:

    After that, an agent invokes it via Skill(skill="placer").

    line 261

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

PLACER — Protein-Ligand Atomistic Conformational Ensemble Resolver

What this is

PLACER is a graph neural network in which the nodes are atoms. It was trained to recover correct atom positions from partially corrupted input structures (Cambridge Structural Database + PDB). Given the atom composition and bonding of a small molecule plus the surrounding protein context, it rebuilds the small molecule and nearby protein side chains. It is a fast, stochastic denoiser — running it N times yields an ensemble of solutions, which is how you both improve a pose and read off conformational heterogeneity.

Two things it is good at:

  • Ligand docking / pose scoring given approximate knowledge of the binding site (the ligand must already be in the input structure with coordinates).
  • Side-chain prediction around a ligand or in an apo pocket, with per-atom confidence written to the PDB b-factor column.

The upstream repo lives at ~/Repos/PLACER and ships the model weights (weights/PLACER_model_1.pt) inside the checkout.

Hard limitation, read first: PLACER cannot take an apo protein + a separate SMILES/SDF and dock the ligand from scratch. The docked ligand must already be present, with coordinates, in the input PDB/mmCIF. The SDF/MOL2 --ligand_file input only refines atom typing/bonding — coordinates are still read from the PDB/mmCIF. See references/inputs.md.

When to use PLACER vs. alternatives

You want…Use
Refine/score a ligand pose already placed in a pocket; sidechain repackingPLACER
Generate a ligand pose from scratch (apo + SMILES)A docking tool (Vina/GNINA/SigmaDock) or a co-folding model — not PLACER
Full protein-ligand complex structure from sequence + ligandboltz, chai-lab
Design an enzyme / binder active site (then validate with PLACER)invrotzyme → foundry (RFdiffusionAA), disco, boltzgen
Sidechain repacking inside a managed pipeline (SLURM)protflow (wraps run_PLACER.py)

A common loop: design active sites (invrotzyme/disco/RFdiffusionAA) → assign sequence (foundry LigandMPNN) → PLACER to check the ligand re-resolves at low prmsd with high plddt → keep the survivors.

Quickstart — run from an Apptainer SIF

PLACER's environment is heavy (CUDA 12.1, torch 2.3.1, dgl 2.4.0, openbabel, e3nn, the NVIDIA SE3Transformer from git). Packaging it once into a SIF makes it portable and reproducible across machines/clusters. The skill ships a definition file at examples/PLACER.def.

1) Build the SIF (one-time)

# Needs apptainer (or singularity) with --fakeroot, plus network for the build.
apptainer build placer.sif \
  ~/.claude/skills/placer/examples/PLACER.def

The build clones PLACER into /opt/PLACER (weights included) and creates the placer_env_lite conda environment inside the image. See references/installation.md for --fakeroot vs. sudo, building on a cluster, the CUDA-driver requirement, and bind-mounting a host checkout instead of cloning.

2) Run a prediction (GPU)

apptainer exec --nv placer.sif \
  python /opt/PLACER/run_PLACER.py \
    --ifile 4dtz.cif \
    --odir out \
    -n 50 \
    --rerank prmsd \
    --predict_ligand D-LDP-501 \
    --suffix LDP \
    --weights /opt/PLACER/weights/PLACER_model_1.pt
  • --nv exposes the host GPU (required for sane speed: ~1-3 s/model on GPU vs. ~7 min/model on 1 CPU core).
  • Apptainer mounts $PWD and $HOME by default, so --ifile 4dtz.cif and --odir out resolve to the host working directory. Use --bind /data:/data for paths outside those. See references/installation.md.
  • The --weights gotcha: run_PLACER.py's default weights/PLACER_model_1.pt is resolved relative to the current working directory, not the script. From an arbitrary host cwd it won't be found — always pass the absolute in-container path --weights /opt/PLACER/weights/PLACER_model_1.pt (exported in the image as $PLACER_WEIGHTS), or add --pwd /opt/PLACER.

3) Read the output

Two files per input, prefixed by <odir>/<input_stem>[ _<suffix>]:

  • *_model.pdb — a multimodel PDB, one MODEL per sample, reranked best→worst by --rerank. Per-atom prmsd is in the b-factor column.
  • *.csv — one row per sample with the confidence scores.

Pick the top ~10% by prmsd for docking analysis. Full layout + score definitions in references/outputs.md.

CLI at a glance

run_PLACER.py is the entry point. The flags you will use most:

FlagPurpose
-f/--ifileSingle PDB/mmCIF, or a text file listing many (mmCIF must be RCSB-formatted)
-i/--idirFolder of *.pdb to batch
-o/--odirOutput folder (default ./)
-n/--nsamplesEnsemble size — 50 for sidechains, 50-100+ for docking
--rerank {prmsd,plddt,plddt_pde}Sort output models + CSV best→worst
--predict_ligand <chain-name3-resno> …Ligand(s) to predict; all others auto-fixed
--predict_multiPredict/score all allowed ligands (respects fixed/predict)
--fixed_ligand <…>Keep these ligand(s) fixed (e.g. heme)
--ligand_file XXX:lig.sdfRefine atom typing/bonding from SDF/MOL2 (or XXX:CCD)
--target_res <chain-resno>Crop center — required when input has no ligand (apo sidechains)
--mutate 128A:75I …Mutate positions before predicting
--residue_json file.jsonRegister non-canonical residues into the CCD library
--use_sm / --no-use_smPredict with (holo, default) / without (apo) the small molecule
--suffixAppended to output filenames
--cautiousSkip inputs whose output CSV already exists
--weights.pt checkpoint (pass the absolute in-container path)

Ligand / residue selectors use <name3>, <name3-resno>, or <chain-name3-resno> (e.g. HEM, LDP-501, D-LDP-501). Full flag reference with semantics: references/cli.md. Input conventions and the residue-JSON schema: references/inputs.md.

Confidence scores — which to trust

PLACER emits several scores per model (CSV columns); for docking, rank by prmsd (predicted RMS of atomic-position deviations of the ligand — a true confidence, not a comparison to ground truth):

  • prmsd < 2.0 → trustworthy. < 4.0 can be acceptable if it's the best you get and plddt/plddt_pde are good (> 0.8).
  • plddt / plddt_pde — predicted lDDT over ligand atoms (1D / 2D track).
  • fape, lddt, rmsd, kabsch — these compare to the input structure (ground-truth-relative), useful when the input pose is known/trusted.

Definitions and ranking guidance: references/outputs.md.

Python API (inside the SIF)

import sys; sys.path.append("/opt/PLACER")
import PLACER

placer = PLACER.PLACER()                       # loads default checkpoint
inp = PLACER.PLACERinput()
inp.cif("4dtz.cif")                            # or .pdb(path/string)
inp.name("p450_dopamine")
inp.predict_ligand([("D", "LDP", 501)])        # fixes all other ligands
inp.ligand_reference({"HEM": "CCD", "LDP": "CCD"})
outputs = placer.run(inp, 50)                  # dict of N models
PLACER.protocol.dump_output(outputs, "out/p450_dopamine", rerank="prmsd")

Run it as apptainer exec --nv placer.sif python my_script.py. Every PLACERinput setter (fixed_ligand, bonds, mutate, add_custom_residues, corruption_centers, crop_centers, …) is documented in references/python-api.md.

Gotchas (read before you debug)

  1. Ligand must be in the input with coordinates. No SMILES→pose. No apo+SDF docking. --ligand_file only fixes atom typing/bonding.
  2. --weights is cwd-relative. Pass /opt/PLACER/weights/PLACER_model_1.pt.
  3. Ligand and protein must not share a chain letter for PDB inputs — this raises an AssertionError. RCSB mmCIF parses cleanly because it handles ligand chains differently (see the API example with 3rgk.pdb vs 3rgk.cif).
  4. Apo runs need a crop center. With no ligand, pass --target_res (and usually --no-use_sm).
  5. Non-planar aromatic rings → supply --ligand_file LIG:lig.sdf so bonds/ hybridization are read correctly.
  6. Crop > ~600 atoms is out of distribution — confidence degrades.
  7. Hydrogens are not predicted; use --ignore_ligand_hydrogens if your PDB/SDF protonation states disagree.
  8. Outputs of other predictors (AF/Boltz/Chai mmCIF) often parse poorly (missing H, formatting) — prefer RCSB mmCIF or Rosetta PDB.
  9. --nv is required for GPU; without it PLACER silently runs on CPU (minutes per model).
  10. mmCIF must be RCSB-formatted for the CIF parser; arbitrary mmCIF may fail. PDB is the safer general input.

More failure modes and fixes: references/troubleshooting.md.

Reference index

  • references/installation.md — building/using the SIF (PLACER.def, fakeroot, cluster builds, GPU/driver, binds, bind-a-checkout, conda fallback).
  • references/cli.md — every run_PLACER.py flag with semantics + examples.
  • references/inputs.md — input formats, ligand/residue selector syntax, --ligand_file, residue-JSON schema for non-canonicals.
  • references/python-api.md — PLACER / PLACERinput / protocol.dump_output.
  • references/outputs.md — file layout + every score and how to rank.
  • references/troubleshooting.md — build and runtime errors.
  • examples/PLACER.def — the Apptainer/Singularity definition file.
  • examples/commandline_examples.sh — copy-paste container invocations.

Installing this skill

# Symlink (recommended — picks up edits live)
mkdir -p ~/.claude/skills
ln -s "$(pwd)" ~/.claude/skills/placer
# Or copy:
cp -R . ~/.claude/skills/placer

After that, an agent invokes it via Skill(skill="placer").

Citation

PLACER (formerly ChemNet), Baker Lab / Institute for Protein Design. BSD 3-Clause (code + weights), © 2025 University of Washington.

Anishchenko, Kalvet, Krishna et al.
Modeling protein-small molecule conformational ensembles with PLACER.
bioRxiv 2024.09.25.614868.
https://www.biorxiv.org/content/10.1101/2024.09.25.614868v1

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.