Charles Plessy
01/30/2025, 2:37 AMlast/mafconvert), the module takes a file format as input and converts another input to that format. I am planning to expand the module so that it takes a list of formats, because my users sometimes want multiple formats for the output.
For instance, if it gets a file foo.maf and the formats gff, sam and axt as input, it will create a file foo.gff, a file foo.axt and file foo.sam as output. I want the list of format to be able to take any number of formats from a fixed list of possible values.
My questions are how to handle that in the module and how to handle that in a pipeline using the module?
• In the module, is it better to take a character-delimited string such as sam, axt,sam or sam,axt,gff, etc? Or to take an array of values (['sam'], ['axt', 'sam'], ['sam', 'axt', 'gff'] , …)
• In a pipeline,
◦ is there already a standard for passing a list of values through a parameter? ChatGPT suggests me character-delimited strings and then .split(',') or .tokenize(' '). \
◦ And What would be the best way to handle this in the nextflow_schema.json?Arthur
01/30/2025, 5:40 AMparams.json (or yml) to supply a real array (they could still set a single value on the cli I think)
• Use a comma-separated string and .split and do validation of the actual values in the pipelineCharles Plessy
01/30/2025, 6:10 AM