diff --git a/setup.cfg b/setup.cfg index 27f07b8..149db93 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = metabo_adni -version = 0.5.0 +version = 0.5.1 [options] package_dir = diff --git a/src/metabo_adni/qc/transformations.py b/src/metabo_adni/qc/transformations.py index 5b29ca4..1fc837e 100644 --- a/src/metabo_adni/qc/transformations.py +++ b/src/metabo_adni/qc/transformations.py @@ -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