From e8d39e11bf6a211117d4e8bae1fa7ff27fd97302 Mon Sep 17 00:00:00 2001 From: johaGL Date: Fri, 26 Jan 2024 18:11:42 +0100 Subject: [PATCH] flake8 ok, prepare for release 0.2.1 --- pyproject.toml | 2 +- src/dimet/data/__init__.py | 1 - src/dimet/processing/differential_analysis.py | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a685732..fa751e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name="DIMet" -version="0.2.0" +version="0.2.1" description="A tool for Differential analysis of Isotope-labeled targeted Metabolomics data" readme="README.md" license = "MIT" diff --git a/src/dimet/data/__init__.py b/src/dimet/data/__init__.py index 509333f..ec57b22 100644 --- a/src/dimet/data/__init__.py +++ b/src/dimet/data/__init__.py @@ -75,7 +75,6 @@ def preload(self): else: self.sub_folder_absolute = self.config.subfolder - # start loading the dataframes file_paths = [ ("metadata", os.path.join(self.sub_folder_absolute, diff --git a/src/dimet/processing/differential_analysis.py b/src/dimet/processing/differential_analysis.py index 61dd37c..05b3cde 100644 --- a/src/dimet/processing/differential_analysis.py +++ b/src/dimet/processing/differential_analysis.py @@ -267,8 +267,8 @@ def compute_p_value(df: pd.DataFrame, test: str, best_dist, df["pvalue"] = 2 * ( 1 - best_dist.cdf(abs(df["zscore"]), **args_param)) else: - print( - "WARNING: two-tailed or not") # TODO: clarify the warning message + print("WARNING [compute_p_value]: only 'right-tailed' or " + "'two-sided' as test argument supported") return df