Install
openclaw skills install amber-mdOfficial-style Amber24 molecular dynamics workflow guide for proteins. Includes a standard end-to-end Amber MD procedure, command templates, input-file templates, and a complete manual worked example from PDB download through RMSD/RMSF analysis. This is a documentation-oriented scientific skill for reproducible research workflows in Amber.
openclaw skills install amber-mdThis skill is designed as an official-style documentation page for running a standard protein molecular dynamics workflow with Amber24 / AmberTools24.
It is intentionally documentation-first:
It does not bundle executable automation scripts inside the public ClawHub package.
Use this skill when you need to:
cpptraj,| Tool | Main purpose |
|---|---|
pdb4amber | preprocess PDB structures for Amber |
tleap | build topology and coordinates |
pmemd.cuda | GPU production MD |
pmemd | CPU fallback |
cpptraj | trajectory analysis |
antechamber | ligand parameterization when needed |
parmchk2 | missing force-field terms for ligands |
| Stage | Goal | Main output |
|---|---|---|
| 1. Structure preparation | clean and standardize input structure | processed PDB |
| 2. System building | add force field, solvent, ions | prmtop, inpcrd |
| 3. Minimization | remove bad contacts | minimized restart file |
| 4. NVT heating | raise temperature to target value | heated restart + trajectory |
| 5. NPT equilibration | stabilize density and pressure | equilibrated restart + trajectory |
| 6. Production MD | generate scientific trajectory | production trajectory |
| 7. Analysis | compute RMSD/RMSF and related metrics | data tables and plots |
project/
├── input/
│ └── protein.pdb
├── build/
├── md/
├── analysis/
└── logs/
A simpler flat directory also works, but a structured layout improves reproducibility.
pdb4amber to standardize residue names and protonation-related formatting.mkdir -p input build md analysis logs
cd project
# download from RCSB
wget -O input/1AKI.pdb https://files.rcsb.org/download/1AKI.pdb
# preprocess
pdb4amber -i input/1AKI.pdb -o input/1AKI_amber.pdb --reduce > logs/pdb4amber.log 2>&1
ff19SBOPCNa+ / Cl-tleap input templateSave as build/tleap.in:
source leaprc.protein.ff19SB
source leaprc.water.opc
mol = loadPDB ../input/1AKI_amber.pdb
desc mol
addions mol Cl- 0
addions mol Na+ 0
solvateOct mol OPCBOX 15.0
addions2 mol Na+ 0
addions2 mol Cl- 0
saveAmberParm mol prmtop inpcrd
savePDB mol solvated.pdb
quit
cd build
tleap -f tleap.in > ../logs/tleap.log 2>&1
build/prmtopbuild/inpcrdbuild/solvated.pdbA common two-stage minimization is sufficient for many small-to-medium protein systems.
Save as md/min1.in:
Stage 1 minimization
&cntrl
imin=1,
maxcyc=5000,
ncyc=2500,
ntb=1,
ntr=0,
cut=10.0,
ntpr=500,
/
Run:
cd md
pmemd.cuda -O \
-i min1.in \
-o min1.out \
-p ../build/prmtop \
-c ../build/inpcrd \
-r min1.rst7
Save as md/min2.in:
Stage 2 minimization
&cntrl
imin=1,
maxcyc=10000,
ncyc=5000,
ntb=1,
ntr=0,
cut=10.0,
ntpr=1000,
/
Run:
pmemd.cuda -O \
-i min2.in \
-o min2.out \
-p ../build/prmtop \
-c min1.rst7 \
-r min2.rst7
Save as md/heat.in:
NVT heating
&cntrl
imin=0,
irest=0,
ntx=1,
nstlim=50000,
dt=0.002,
ntf=2,
ntc=2,
tempi=0.0,
temp0=300.0,
ntt=3,
gamma_ln=1.0,
ntb=1,
cut=10.0,
ntpr=5000,
ntwx=5000,
/
Run:
pmemd.cuda -O \
-i heat.in \
-o heat.out \
-p ../build/prmtop \
-c min2.rst7 \
-r heat.rst7 \
-x heat.nc
Save as md/equil.in:
NPT equilibration
&cntrl
imin=0,
irest=1,
ntx=5,
nstlim=100000,
dt=0.002,
ntf=2,
ntc=2,
temp0=300.0,
ntt=3,
gamma_ln=1.0,
ntb=2,
ntp=1,
pres0=1.0,
cut=10.0,
ntpr=10000,
ntwx=10000,
/
Run:
pmemd.cuda -O \
-i equil.in \
-o equil.out \
-p ../build/prmtop \
-c heat.rst7 \
-r equil.rst7 \
-x equil.nc
Save as md/prod.in:
Production MD
&cntrl
imin=0,
irest=1,
ntx=5,
nstlim=500000,
dt=0.002,
ntf=2,
ntc=2,
temp0=300.0,
ntt=3,
gamma_ln=1.0,
ntb=2,
ntp=1,
pres0=1.0,
cut=10.0,
iwrap=1,
ntpr=25000,
ntwx=12500,
/
Run:
pmemd.cuda -O \
-i prod.in \
-o prod.out \
-p ../build/prmtop \
-c equil.rst7 \
-r prod.rst7 \
-x prod.nc
| Target time | nstlim with dt=0.002 ps |
|---|---|
| 1 ns | 500000 |
| 10 ns | 5000000 |
| 100 ns | 50000000 |
Before RMSD/RMSF:
autoimage,cpptraj templateSave as analysis/analyze.cpptraj:
parm ../build/prmtop
trajin ../md/prod.nc 1 last 1
strip :WAT
strip :Na+
strip :Cl-
autoimage
rms out rmsd_ca.dat
atomicfluct out rmsf_ca.dat
run
Run:
cd analysis
cpptraj -i analyze.cpptraj > ../logs/cpptraj.log 2>&1
analysis/rmsd_ca.datanalysis/rmsf_ca.datlogs/cpptraj.logThis example shows a minimal, reproducible manual workflow using 1AKI.
mkdir -p amber_1aki/{input,build,md,analysis,logs}
cd amber_1aki
wget -O input/1AKI.pdb https://files.rcsb.org/download/1AKI.pdb
pdb4amber -i input/1AKI.pdb -o input/1AKI_amber.pdb --reduce > logs/pdb4amber.log 2>&1
build/tleap.incat > build/tleap.in << 'EOF'
source leaprc.protein.ff19SB
source leaprc.water.opc
mol = loadPDB ../input/1AKI_amber.pdb
addions mol Cl- 0
addions mol Na+ 0
solvateOct mol OPCBOX 15.0
addions2 mol Na+ 0
addions2 mol Cl- 0
saveAmberParm mol prmtop inpcrd
savePDB mol solvated.pdb
quit
EOF
Run:
cd build
tleap -f tleap.in > ../logs/tleap.log 2>&1
cd ..
Use the exact templates from the sections above:
md/min1.inmd/min2.inmd/heat.inmd/equil.inmd/prod.incd md
pmemd.cuda -O -i min1.in -o min1.out -p ../build/prmtop -c ../build/inpcrd -r min1.rst7
pmemd.cuda -O -i min2.in -o min2.out -p ../build/prmtop -c min1.rst7 -r min2.rst7
pmemd.cuda -O -i heat.in -o heat.out -p ../build/prmtop -c min2.rst7 -r heat.rst7 -x heat.nc
pmemd.cuda -O -i equil.in -o equil.out -p ../build/prmtop -c heat.rst7 -r equil.rst7 -x equil.nc
pmemd.cuda -O -i prod.in -o prod.out -p ../build/prmtop -c equil.rst7 -r prod.rst7 -x prod.nc
cd ..
cat > analysis/analyze.cpptraj << 'EOF'
parm ../build/prmtop
trajin ../md/prod.nc 1 last 1
strip :WAT
strip :Na+
strip :Cl-
autoimage
rms out rmsd_ca.dat
atomicfluct out rmsf_ca.dat
run
EOF
cd analysis
cpptraj -i analyze.cpptraj > ../logs/cpptraj.log 2>&1
cd ..
ls -lh md/prod.nc analysis/rmsd_ca.dat analysis/rmsf_ca.dat
Expected scientific interpretation:
| Check | What to look for |
|---|---|
| Minimization | energy decreases and no severe bad contacts remain |
| Heating | temperature ramps smoothly toward 300 K |
| Equilibration | density/pressure behavior stabilizes |
| Production RMSD | plateau rather than monotonic drift |
| RMSF | flexible regions match structural expectation |
Using all atoms including water for RMSD
Ignoring ligands with missing parameters
Using inconsistent atom masks
Skipping autoimage
Starting with too large a target simulation
If your structure contains:
then you may need:
antechamber,parmchk2,tleap libraries,MCPB.py.For a first-pass reproducible workflow, a protein-only simulation is often the most robust baseline.
references/amber_parameter_guide.mdreferences/cpptraj_analysis_guide.mdThis public ClawHub version is intended for:
It is a public documentation edition rather than a bundled executable automation package.