Skip to content

Commit

Permalink
Info if the name of lig is wrong [getFrequentInteractors selection]
Browse files Browse the repository at this point in the history
  • Loading branch information
karolamik13 committed Oct 18, 2023
1 parent bc432db commit 76852b0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions prody/proteins/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3837,11 +3837,14 @@ def getFrequentInteractors(self, **kwargs):
LOGGER.info('{0}: {1}'.format(j[0],j[1]))

else:
LOGGER.info('LIGAND: {0}'.format(selection))
aa_counter = Counter(ligs[selection])
dictOfInteractions.append(aa_counter)
if selection not in ligs.keys():
LOGGER.info('Wrong selection. Please provide ligand name with chain ID.')
else:
LOGGER.info('LIGAND: {0}'.format(selection))
aa_counter = Counter(ligs[selection])
dictOfInteractions.append(aa_counter)

for j in aa_counter.items():
LOGGER.info('{0}: {1}'.format(j[0],j[1]))
for j in aa_counter.items():
LOGGER.info('{0}: {1}'.format(j[0],j[1]))

return dictOfInteractions

0 comments on commit 76852b0

Please sign in to comment.