Skip to content

Commit

Permalink
Update to 1.5.3.
Browse files Browse the repository at this point in the history
Fix issue with the number of colors used to color the taxon in the powergraph.
  • Loading branch information
ArnaudBelcour committed Sep 26, 2022
1 parent fe68c31 commit 037660c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion metage2metabo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@

from metage2metabo import m2m, m2m_analysis

__version__ = '1.5.2'
__version__ = '1.5.3'
""" version of the package
"""
7 changes: 2 additions & 5 deletions metage2metabo/m2m_analysis/graph_compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 037660c

Please sign in to comment.