From aac8adff6e2cfdfef1a55c47620efa68927d5c1f Mon Sep 17 00:00:00 2001 From: Mostafa Kalhor Date: Sun, 27 Oct 2024 13:17:53 +0000 Subject: [PATCH] fixed pre-commits error --- oktoberfest/runner.py | 2 -- tests/unit_tests/test_runner.py | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/oktoberfest/runner.py b/oktoberfest/runner.py index c923ac7..0e35da5 100755 --- a/oktoberfest/runner.py +++ b/oktoberfest/runner.py @@ -594,7 +594,6 @@ def _calculate_features(spectra_file: Path, config: Config, xl: bool = False): predict_step = ProcessStep(config.output, "predict." + spectra_file.stem) if not predict_step.is_done(): - if "alphapept" in config.models["intensity"].lower(): chunk_idx = list(group_iterator(df=library.obs, group_by_column="PEPTIDE_LENGTH")) else: @@ -1317,7 +1316,6 @@ def run_rescoring(config_path: Union[str, Path]): logger.info("Finished rescoring.") generate_xifdr_input_step = ProcessStep(config.output, "generate_xifdr_input") if not generate_xifdr_input_step.is_done(): - logger.info("Generating xiFDR input.") if config.inputs["search_results_type"].lower() == "xisearch": input_xifdr(str(fdr_dir), "xisearch") diff --git a/tests/unit_tests/test_runner.py b/tests/unit_tests/test_runner.py index 9e903e5..d417ca8 100644 --- a/tests/unit_tests/test_runner.py +++ b/tests/unit_tests/test_runner.py @@ -39,7 +39,9 @@ def test_rescoring_xl(self): ) try: - assert_frame_equal(expected_perc_tab_file, created_perc_tab_file, check_dtype=True, check_exact=False, rtol = 1e-2) + assert_frame_equal( + expected_perc_tab_file, created_perc_tab_file, check_dtype=True, check_exact=False, rtol=1e-2 + ) except AssertionError as e: print("DataFrames are not equal:", e) raise # Re-raise the assertion error for the test framework to catch @@ -47,4 +49,3 @@ def test_rescoring_xl(self): config = Config() config.read(config_path) shutil.rmtree(Path(__file__).parent / "data" / "xl" / "cleavable" / "out") -