Initial pdb file processing:   histidines.inp

Before starting with the minimization and solvation, one ought to decide on the protonation states of the titratable groups. Often this means analyzing what is around each of these groups after carefully reading the pdb remarks to see if there are any hints about whether they are coordinated. If they are coordinated, then it is important to check the distances in the coordination complex to decide which groups should or should not be protonated.

Run charmm making sure to identify the pdbfile (1fsc.pdb):

% charmm pdbfile=1fsc < histidines.inp
Two methods for looking aqt what the protonation state of the histidines are presented here and both require the user to analyze the results and to make the final decision. This example has 2 histidines (resid 6 and 29).
HSD resid 6 h-bonds image Histidine HSD resid 6
HSD resid 6 h-bonds image Histidine HSE resid 29

Since the decision has been made to change one HSD to a HSE, the appropriate patch needs to be added to the solvate script before the psf is finalized and written. The patch is:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!     Patch for changing HSD to HSE for this particular case
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
patch hs2  @pdbfile 29
rename resn HSE sele resi 29 end
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!      Done Patch
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!