From 037660c0fb04d52c702cfa84fa5474d206621207 Mon Sep 17 00:00:00 2001 From: Arnaud Belcour Date: Mon, 26 Sep 2022 19:18:50 +0200 Subject: [PATCH] Update to 1.5.3. Fix issue with the number of colors used to color the taxon in the powergraph. --- CHANGELOG.md | 6 ++++++ metage2metabo/__init__.py | 2 +- metage2metabo/m2m_analysis/graph_compression.py | 7 ++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39c31fe..89d17bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +# Metage2Metabo v1.5.3 (2022-09-26) + +## Fix + +* Correctly fix the issue with the colors used for the powergraph. + # Metage2Metabo v1.5.2 (2022-09-23) ## Modify diff --git a/metage2metabo/__init__.py b/metage2metabo/__init__.py index ac523c1..133a29c 100644 --- a/metage2metabo/__init__.py +++ b/metage2metabo/__init__.py @@ -14,6 +14,6 @@ from metage2metabo import m2m, m2m_analysis -__version__ = '1.5.2' +__version__ = '1.5.3' """ version of the package """ diff --git a/metage2metabo/m2m_analysis/graph_compression.py b/metage2metabo/m2m_analysis/graph_compression.py index 13540fa..33331a1 100644 --- a/metage2metabo/m2m_analysis/graph_compression.py +++ b/metage2metabo/m2m_analysis/graph_compression.py @@ -169,11 +169,8 @@ def powergraph_analysis(gml_input_file_folder, output_folder, oog_jar=None, taxo sys.exit(1) taxon_colors = {} - a = 0 - for index, taxon in enumerate(all_taxons): - if taxon in taxon_key_species: - a +=1 - taxon_colors[taxon] = used_colors[index] + for index, taxon in enumerate(taxon_key_species): + taxon_colors[taxon] = used_colors[index] bbl_to_html(bbl_output, html_target) if taxon_file: