From fb42cabe87249f0a5eefdd8c11903e76facfc876 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 30 Jun 2021 08:08:54 +0200 Subject: [PATCH] Kinase matrix for size: Fill NaN with 0 (got lost during code move) --- kissim/comparison/matrix.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kissim/comparison/matrix.py b/kissim/comparison/matrix.py index 079ff81b..ff8560c6 100644 --- a/kissim/comparison/matrix.py +++ b/kissim/comparison/matrix.py @@ -102,6 +102,7 @@ def kinase_distance_matrix( # If matrix contains number of structure pairs: NaN > 0, cast to int if by == "size": + matrix = matrix.fillna(0) matrix = matrix.astype("int64") return matrix