process KMERCLUST { tag "$specie" label 'big_mem_multi_cpus' container "lbmc/kmerclust:0.0.1" publishDir "results/${params.kmer_size}/${specie}/", mode: 'copy' input: tuple val(specie), path(csv) output: tuple val(specie), path("*.pdf"), emit: pdf tuple val(specie), path("*.Rdata"), emit: rdata path "versions.yml" , emit: versions script: def args = task.ext.args ?: '' """ Rscript ../bin/kmerclust.R ${params.csv} ${csv} ${specie} cat <<-END_VERSIONS > versions.yml "${task.process}": Rkmerclust: 0.0.1 END_VERSIONS """ }