Skip to content

Commit

Permalink
fixed log transformation error, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
tomszar committed Jul 28, 2022
1 parent 936a8a1 commit d7379f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = metabo_adni
version = 0.5.0
version = 0.5.1

[options]
package_dir =
Expand Down
2 changes: 1 addition & 1 deletion src/metabo_adni/qc/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def log2(dat_dict: dict[str, pd.DataFrame],
key)
indices = load._get_data_indices(dat_dict[key], platform)
dat = dat_dict[key].loc[indices, metabo_names]
log2_dat = np.log2(dat)
log2_dat = np.log2(dat + 1)
dat_dict[key].loc[indices, metabo_names] = log2_dat
print('')
return dat_dict
Expand Down

0 comments on commit d7379f7

Please sign in to comment.