Skip to content

Commit

Permalink
return added to getInteractors()
Browse files Browse the repository at this point in the history
  • Loading branch information
karolamik13 committed Oct 13, 2024
1 parent 322fa5d commit feac8ab
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 @@ -3584,10 +3584,14 @@ def getInteractors(self, residue_name):
m2 = resIDs_with_resChIDs.index((int(ii[3][3:]),ii[5]))
ListOfInteractions.append(interaction_type[nr]+':'+ii[0]+ii[2]+'-'+ii[3]+ii[5])

aa_ListOfInteractions = []
for i in ListOfInteractions:
inter = i.split(":")[1:][0]
if inter.split('-')[0] == residue_name or inter.split('-')[1] == residue_name:
LOGGER.info(i)
aa_ListOfInteractions.append(i)

return aa_ListOfInteractions


def getFrequentInteractors(self, contacts_min=2):
Expand Down

0 comments on commit feac8ab

Please sign in to comment.