Skip to content

Commit

Permalink
handle no KRED better
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Dec 19, 2024
1 parent ac4023b commit d413ee3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prody/proteins/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,10 @@ def calcSaltBridges(atoms, **kwargs):
distA = kwargs.pop('distA', distSB)

atoms_KRED = atoms.select('protein and ((resname ASP GLU LYS ARG and not backbone and not name OXT NE "C.*" and noh) or (resname HIS HSE HSD HSP and name NE2))')
if atoms_KRED is None:
LOGGER.warn('There are no side chain heavy atoms for residues K, R, E, D and H, so not salt bridges are calculated')
return []

charged_residues = list(set(zip(atoms_KRED.getResnums(), atoms_KRED.getChids())))

LOGGER.info('Calculating salt bridges.')
Expand Down

0 comments on commit d413ee3

Please sign in to comment.