To actually run this demo requires
psfgen from any NAMD distribution,
top_all22_prot.inp and
par_all22_prot.inp from
http://mackerell.umaryland.edu/charmm_ff.shtml, and
6PTI.pdb available from the Protein Data Bank at
http://www.pdb.org/ by searching for 6PTI and downloading
the complete structure file in PDB format.
bpti.psf and bpti.pdb
in the output directory which can then be used for a simple NAMD
simulation.
# File: bpti_example.tcl
# Requirements: topology file top_all22_prot.inp in directory toppar
# PDB file 6PTI.pdb in current directory
# Create working directory; remove old output files
mkdir -p output
rm -f output/6PTI_protein.pdb output/6PTI_water.pdb
# (1) Split input PDB file into segments}
grep -v '^HETATM' 6PTI.pdb > output/6PTI_protein.pdb
grep 'HOH' 6PTI.pdb > output/6PTI_water.pdb
# (2) Embed the psfgen commands in this script
psfgen << ENDMOL
# (3) Read topology file
topology toppar/top_all22_prot.inp
# (4) Build protein segment
segment BPTI {
pdb output/6PTI_protein.pdb
}
# (5) Patch protein segment
patch DISU BPTI:5 BPTI:55
patch DISU BPTI:14 BPTI:38
patch DISU BPTI:30 BPTI:51
# (6) Read protein coordinates from PDB file
pdbalias atom ILE CD1 CD ; # formerly "alias atom ..."
coordpdb output/6PTI_protein.pdb BPTI
# (7) Build water segment
pdbalias residue HOH TIP3 ; # formerly "alias residue ..."
segment SOLV {
auto none
pdb output/6PTI_water.pdb
}
# (8) Read water coordinaes from PDB file
pdbalias atom HOH O OH2 ; # formerly "alias atom ..."
coordpdb output/6PTI_water.pdb SOLV
# (9) Guess missing coordinates
guesscoord
# (10) Write structure and coordinate files
writepsf output/bpti.psf
writepdb output/bpti.pdb
# End of psfgen commands
ENDMOL
Step-by-step explanation of the script:
6PTI.pdb is the original file from the Protein Data Bank. It contains a single chain of protein and some PO4 and H2O HETATM records. Since each segment must have a separate input file, we remove all non-protein atom records using grep. If there were multiple chains we would have to split the file by hand. Create a second file containing only waters.
$$ for variables when inside a shell script. If you
want, run psfgen and enter the following commands manually.
The files bpti.pdb and bpti.psf can now be used with NAMD, but the initial coordinates require minimization first. The following is an example NAMD configuration file for the BPTI example.
# NAMD configuration file for BPTI # molecular system structure output/bpti.psf # force field paratypecharmm on parameters toppar/par_all22_prot.inp exclude scaled1-4 1-4scaling 1.0 # approximations switching on switchdist 8 cutoff 12 pairlistdist 13.5 margin 0 stepspercycle 20 #integrator timestep 1.0 #output outputenergies 10 outputtiming 100 binaryoutput no # molecular system coordinates output/bpti.pdb #output outputname output/bpti dcdfreq 1000 #protocol temperature 0 reassignFreq 1000 reassignTemp 25 reassignIncr 25 reassignHold 300 #script minimize 1000 run 20000
http://www.ks.uiuc.edu/Research/namd/