From feac8abdf728c2b2b7a2590a4e90c96defaea54f Mon Sep 17 00:00:00 2001 From: karolamik13 Date: Sun, 13 Oct 2024 19:54:21 +0200 Subject: [PATCH] return added to getInteractors() --- prody/proteins/interactions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prody/proteins/interactions.py b/prody/proteins/interactions.py index b22f91a67..8af6e9090 100644 --- a/prody/proteins/interactions.py +++ b/prody/proteins/interactions.py @@ -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):