Skip to content

Commit

Permalink
stop_frame fix in multi-model PDB [SMINA and ligand interactions]
Browse files Browse the repository at this point in the history
  • Loading branch information
karolamik13 committed Nov 8, 2023
1 parent 49e97e0 commit 76080a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prody/proteins/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2513,7 +2513,7 @@ def calcSminaBindingAffinity(atoms, trajectory=None, **kwargs):

if atoms.numCoordsets() > 1:
# Multi-model PDB
for i in range(len(atoms.getCoordsets()[start_frame:stop_frame])):
for i in range(len(atoms.getCoordsets()[start_frame:stop_frame+1])):
atoms.setACSIndex(i+start_frame)
protein = atoms.select(protein_selection)
ligand = atoms.select(ligand_selection)
Expand Down Expand Up @@ -3935,7 +3935,7 @@ def calcLigandInteractionsTrajectory(self, atoms, trajectory=None, **kwargs):

else:
if atoms.numCoordsets() > 1:
for i in range(len(atoms.getCoordsets()[start_frame:stop_frame])):
for i in range(len(atoms.getCoordsets()[start_frame:stop_frame+1])):
LOGGER.info(' ')
LOGGER.info('Model: {0}'.format(i+start_frame))
atoms.setACSIndex(i+start_frame)
Expand Down

0 comments on commit 76080a9

Please sign in to comment.