how can i convert below Xml syntax in Nextflow.
<collection name="parallel_params"/>
<action name="create_parallel_params">
<input port="workflowParameters" collection="workflowParameters"/>
<output port="parallel_params" collection="parallel_params"/>
</action>
I have written nextflow code as below:
process create_parallel_params{
publishDir params.publishDir, mode: 'copy'
container 'ubuntu:latest'
input:
file workflowParameters from Channel.fromPath(params.workflowParameters)
output:
file 'parallel_params.tsv' into parallel_params
script:
"""
python $TOOL_FOLDERS/parallel_paramgen.py $workflowParameters
"""
}