Skip to content

Commit

Permalink
checking organisms in network: skipping complexes
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Jan 13, 2020
1 parent 2a5abb4 commit 6046e20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pypath/__version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.4
0.9.5
2 changes: 2 additions & 0 deletions src/pypath/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6046e20

Please sign in to comment.