Skip to content

Commit

Permalink
- Fix: Fixef the bug of data preprossing, when the 'sum' method was s…
Browse files Browse the repository at this point in the history
…elected for normalization, the program will raise error.
  • Loading branch information
byemaxx committed Jul 23, 2024
1 parent e2d43b1 commit 0f0f999
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Docs/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Version: 1.109.2
## Date: 2024-07-23
### Changes:
- Fix: Fixef the bug of data preprossing, when the 'sum' method was selected for normalization, the program will raise error.


# Version: 1.109.1
## Date: 2024-07-23
### Changes:
Expand Down
19 changes: 15 additions & 4 deletions metax/gui/main_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2545,10 +2545,21 @@ def set_multi_table(self, restore_taxafunc=False, saved_obj=None):


if normalize_method != 'None' or transform_method != 'None':
transform_dict = {'None': None, 'Log 2 transformation': 'log2', 'Log 10 transformation': 'log10',
'Square root transformation': 'sqrt', 'Cube root transformation': 'cube'}
normalize_dict = {'None': None, 'Mean centering': 'mean','Standard Scaling (Z-Score)' : 'zscore',
'Min-Max Scaling': 'minmax', 'Pareto Scaling': 'pareto'}
transform_dict = {
"None": None,
"Log 2 transformation": "log2",
"Log 10 transformation": "log10",
"Square root transformation": "sqrt",
"Cube root transformation": "cube",
}
normalize_dict = {
"None": None,
"Mean centering": "mean",
"Standard Scaling (Z-Score)": "zscore",
"Min-Max Scaling": "minmax",
"Pareto Scaling": "pareto",
"Normalization by sum": "sum",
}
normalize_method = normalize_dict[normalize_method]
transform_method = transform_dict[transform_method]

Expand Down
2 changes: 1 addition & 1 deletion metax/utils/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '1.109.1'
__version__ = '1.109.2'
API_version = '2'

0 comments on commit 0f0f999

Please sign in to comment.