process SPLIT { tag "$meta.id" label 'small_mem_mono_cpus' container "alpine:3.17" input: tuple val(meta), path(fastq) output: tuple val(meta), path("*.fastq.gz"), emit: fastq path "versions.yml" , emit: versions script: def args = task.ext.args ?: '' """ zcat ${fastq} | split -d -l4000000 --filter='gzip > \$FILE.fastq.gz' ${fastq.simpleName}_ "${task.process}": split: v1.35.0 END_VERSIONS """ }