Skip to content

Commit 8ac625a

Browse files
committed
fixed black
1 parent a448fd3 commit 8ac625a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

relecov_tools/read_bioinfo_metadata.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,9 @@ def add_bioinfo_results_metadata(
268268
)
269269
continue
270270
# Handling files
271-
data_to_map = self.handling_files(files_dict[key], sufix, output_folder, batch_id)
271+
data_to_map = self.handling_files(
272+
files_dict[key], sufix, output_folder, batch_id
273+
)
272274
# Mapping data to j_data
273275
mapping_fields = self.software_config[key].get("content")
274276
if not mapping_fields:
@@ -372,7 +374,9 @@ def handling_files(self, file_list, sufix, output_folder, batch_id):
372374
if current_config.get("split_by_batch") is True:
373375
file_extension = current_config.get("fn").rsplit(".", 1)[1]
374376
base_filename = current_config.get("fn").rsplit(".", 1)[0]
375-
pattern = re.compile(f"{base_filename}_{sufix}.{re.escape(file_extension)}")
377+
pattern = re.compile(
378+
f"{base_filename}_{sufix}.{re.escape(file_extension)}"
379+
)
376380
matching_files = [
377381
f for f in os.listdir(splitted_path) if pattern.match(f)
378382
]
@@ -402,7 +406,9 @@ def handling_files(self, file_list, sufix, output_folder, batch_id):
402406
else:
403407
try:
404408
# Dynamically import the function from the specified module
405-
utils_name = f"relecov_tools.assets.pipeline_utils.{self.software_name}"
409+
utils_name = (
410+
f"relecov_tools.assets.pipeline_utils.{self.software_name}"
411+
)
406412
import_statement = f"import {utils_name}"
407413
exec(import_statement)
408414
# Get method name and execute it.

0 commit comments

Comments
 (0)