From 6046e20c86f969fd94481a1d66ef94461055c231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=BCrei=20D=C3=A9nes?= Date: Tue, 14 Jan 2020 00:54:57 +0100 Subject: [PATCH] checking organisms in network: skipping complexes --- src/pypath/__version__ | 2 +- src/pypath/network.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pypath/__version__ b/src/pypath/__version__ index a602fc9e2..b0bb87854 100644 --- a/src/pypath/__version__ +++ b/src/pypath/__version__ @@ -1 +1 @@ -0.9.4 +0.9.5 diff --git a/src/pypath/network.py b/src/pypath/network.py index 527dfa618..779ab553a 100644 --- a/src/pypath/network.py +++ b/src/pypath/network.py @@ -655,6 +655,7 @@ def load_resource( self._add_edge_list(only_directions = only_directions) self.organisms_check() + self.remove_zero_degree() self._log( 'Completed: loading network data from ' @@ -1903,6 +1904,7 @@ def organisms_check( if ( ( remove_mismatches and + not node.entity_type == 'complex' and not reflists.check( name = node.identifier, id_type = node.id_type,