Skip to content

Commit

Permalink
fixed pre-commits error
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafakalhor committed Oct 27, 2024
1 parent 389b9cd commit aac8adf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions oktoberfest/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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")
Expand Down
5 changes: 3 additions & 2 deletions tests/unit_tests/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ 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

config = Config()
config.read(config_path)
shutil.rmtree(Path(__file__).parent / "data" / "xl" / "cleavable" / "out")

0 comments on commit aac8adf

Please sign in to comment.