Skip to content

Commit

Permalink
Added check for igraph version for plot_network issue
Browse files Browse the repository at this point in the history
  • Loading branch information
PauBadiaM committed May 17, 2024
1 parent b9e89cb commit e1f88fa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions decoupler/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def check_if_igraph():
import igraph as ig
except Exception:
raise ImportError('igraph is not installed. Please install it with: pip install igraph')
from packaging.version import Version
if Version(ig.__version__) < Version("0.10.0"):
raise ImportError('igraph version needs to be at least 0.10.0. Please install it with: pip install igraph==0.10.0')
return ig


Expand Down
15 changes: 14 additions & 1 deletion docs/source/release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
Release notes
=============

1.7.0
-----

Changes
~~~~~~~
- Resource functions such as ``get_resource`` or ``get_collectri`` now accept different ``genesymbol_resource`` than UniProt for gene translation to other organisms.

Bug fixes
~~~~~~~~~
- Fixed error in in ``get_contrast`` by reverting use of ``copy.deepcopy`` to ``copy``.
- Fixed verbose error regarding the number of unique sources being used in ``benchmark``.
- Added check for minimum version of ``igraph>=0.10.0`` to properly render ``plot_network``.

1.6.0
-----

Expand All @@ -9,7 +22,7 @@ Bug fixes
- Fixed wrong corrected p-values of ``get_metadata_associations`` whenever more than 10 factors were present.
- Added static fallback for the most used ``omnipath`` resources, enabling their retrieval when internet connection is unstable.
- Fixed ZeroDivisionError of ``gsea`` when many 0s were present.
- ``dense_run`` now returns sorted features.
- ``dense_run`` now returns sorted features, which allows to run the benchmark pipeline ignoring zeros.

Changes
~~~~~~~
Expand Down

0 comments on commit e1f88fa

Please sign in to comment.