Skip to content

Commit

Permalink
exclude hydrogens from backbone as well #454
Browse files Browse the repository at this point in the history
  • Loading branch information
marioernestovaldes committed Jan 18, 2024
1 parent f0da26a commit 99143f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GMXMMPBSA/createinput.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ def create_inputs(INPUT, prmtop_system, pre):
lig_input['gb']['qmmask']) = prmtop_system.Mask(INPUT['gb']['qm_residues'], in_complex=False)

if INPUT['gb']['exclude_backbone']:
com_input['gb']['qmmask'] = f"({com_input['gb']['qmmask']} & !@N,CA,C,O)"
rec_input['gb']['qmmask'] = f"({rec_input['gb']['qmmask']} & !@N,CA,C,O)"
lig_input['gb']['qmmask'] = f"({lig_input['gb']['qmmask']} & !@N,CA,C,O)"
com_input['gb']['qmmask'] = f"({com_input['gb']['qmmask']} & !@N,CA,HA,C,O)"
rec_input['gb']['qmmask'] = f"({rec_input['gb']['qmmask']} & !@N,CA,HA,C,O)"
lig_input['gb']['qmmask'] = f"({lig_input['gb']['qmmask']} & !@N,CA,HA,C,O)"

if not com_input['gb']['qmmask']:
raise AmberError('No valid QM residues chosen!')
Expand Down

0 comments on commit 99143f7

Please sign in to comment.