From 9c304a7a4dac617f231c1f4f251c5fb9d506caf4 Mon Sep 17 00:00:00 2001 From: Yasset Perez-Riverol Date: Tue, 5 Sep 2023 12:45:47 +0100 Subject: [PATCH] allow multiple options for --extension_convert raw:mzml,d:mzml --- sdrf_pipelines/openms/openms.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sdrf_pipelines/openms/openms.py b/sdrf_pipelines/openms/openms.py index f8237ea..9861f5f 100644 --- a/sdrf_pipelines/openms/openms.py +++ b/sdrf_pipelines/openms/openms.py @@ -58,15 +58,14 @@ def get_openms_file_name(raw, extension_convert: str = None): current_extension = ext[1][1:] if current_extension not in extension_convert_dict: raise Exception( - "Invalid extension conversion. The current extension of the file do not match the provided extension {}".format( - ext[1][1:] - ) + "Invalid extension conversion. The current extension of the file do not match the provided extension {}".format( + current_extension + ) ) out = ext[0] + "." + extension_convert_dict[current_extension] return out - class OpenMS: def __init__(self) -> None: super().__init__()