From 3e3a865e4b7f5b1157dcf9044ab124240840a178 Mon Sep 17 00:00:00 2001 From: jsitarova Date: Tue, 25 Nov 2025 09:23:48 +0100 Subject: [PATCH] support array as input type --- src/python/dxpy/nextflow/nextflow_builder.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/python/dxpy/nextflow/nextflow_builder.py b/src/python/dxpy/nextflow/nextflow_builder.py index cee671fe2..fc8dbdbcb 100644 --- a/src/python/dxpy/nextflow/nextflow_builder.py +++ b/src/python/dxpy/nextflow/nextflow_builder.py @@ -172,6 +172,11 @@ def get_dx_type(nf_type, nf_format=None): } if nf_type == "string" and nf_format in str_types: return str_types[nf_format] + elif isinstance(nf_type, list): + print(f'TEST: nf_type is: {nf_type}') + type_array = [get_dx_type(t) for t in nf_type if t != "null"] + print(f'TEST: type_array is: {type_array}') + return type_array[0] if len(type_array) == 1 else type_array elif nf_type in types: return types[nf_type] raise Exception("type {} is not supported by DNAnexus".format(nf_type))