@@ -268,7 +268,9 @@ def add_bioinfo_results_metadata(
268
268
)
269
269
continue
270
270
# 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
+ )
272
274
# Mapping data to j_data
273
275
mapping_fields = self .software_config [key ].get ("content" )
274
276
if not mapping_fields :
@@ -372,7 +374,9 @@ def handling_files(self, file_list, sufix, output_folder, batch_id):
372
374
if current_config .get ("split_by_batch" ) is True :
373
375
file_extension = current_config .get ("fn" ).rsplit ("." , 1 )[1 ]
374
376
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
+ )
376
380
matching_files = [
377
381
f for f in os .listdir (splitted_path ) if pattern .match (f )
378
382
]
@@ -402,7 +406,9 @@ def handling_files(self, file_list, sufix, output_folder, batch_id):
402
406
else :
403
407
try :
404
408
# 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
+ )
406
412
import_statement = f"import { utils_name } "
407
413
exec (import_statement )
408
414
# Get method name and execute it.
0 commit comments