diff --git a/decoupler/plotting.py b/decoupler/plotting.py index fc735c2..056a54e 100644 --- a/decoupler/plotting.py +++ b/decoupler/plotting.py @@ -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 diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index e970238..068e14a 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -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 ----- @@ -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 ~~~~~~~