Skip to content

Commit

Permalink
allow multiple options for --extension_convert raw:mzml,d:mzml
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Sep 5, 2023
1 parent 2edb41c commit 9c304a7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sdrf_pipelines/openms/openms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__()
Expand Down

0 comments on commit 9c304a7

Please sign in to comment.