For any proteins with a broken backbone, a homology modelly is highly recommended in order to obtain a "perfect" structure with all gaps properly filled.
Note, the way of combining protein with ligand now is recommened to use pymol instead of mannually modification, relavent command for pymol has been included in notebook.
USAGE: The primary goal is to generate two files, called ionized.pdb and ionized.psf, then you define a NAMD configuration file sourceing these two file to carry out a simultion, wtih protein parameter files and small molecule parameter files defined, as per in the above "min.conf", CHANGE the file path if you need to. To run a simulation, first run the "namd3 nvt.namd" then run the "namd3 npt.namd", finally run "namd3 production.namd". If you want to make it even better, you then need to define some restrain by yourself, which is out of the scope of this repository.You could use namd configuration files listed above, or generate your own, some references are https://www.iitg.ac.in/tamalb/karp/namd/cf.html and https://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/node26.html
This is for a general solution simulation for a RCSB PDB structure with a ligand, with a special foucs on small molecule ligand. This notebook take http://zarbi.chem.yale.edu/ligpargen/namd_tutorial.html as a general refernce
You could also use this script to simulate a docked complex, but in that case, more extra work outside of this notebook are supposed to be done, mainly in manuplating the complex.pdb file in a text editing tool such as sublime text, changing the atom numbering (you might need excel in this case) and chain name etc. If you are not confident engough to do such tricy things, you are suggested to produced ionized.psf and ionized.pdb on your local vmd instead running step 4 in the notebook.
Particularly, the "complex.pdb" need modification, the inter section of protein and ligand should be separated by a TER key word. This file is generated by pymol, or by mannually modificaiton if you are patient enough.
The end of the comple.pdb file looks like:NOTE, you need to include the provided water topology/parameter files in the configration file to prevent a "vdw parameter not found for atom type OT" error.
The configuration file need modification, like the "parameters" lines, and the PBC section.