From ea06fd9e20336186e1642435a2bedbb1e841d0b7 Mon Sep 17 00:00:00 2001 From: karolamik13 Date: Wed, 2 Oct 2024 11:40:24 +0200 Subject: [PATCH] Additional info/warning for calcStatisticsInteractions [small number of counts] --- prody/proteins/interactions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prody/proteins/interactions.py b/prody/proteins/interactions.py index 3d1f0c771..e115af087 100644 --- a/prody/proteins/interactions.py +++ b/prody/proteins/interactions.py @@ -2127,6 +2127,10 @@ def calcStatisticsInteractions(data, **kwargs): else: pass statistic.sort(key=lambda x: x[1], reverse=True) + + if statistic == []: + LOGGER.info("Decrease the value of weight_cutoff parameter to obtain the results. Default is 0.2.") + return statistic