Newer
Older
tuple val(specie), path("*.Rdata"), emit: rdata
path "versions.yml" , emit: versions
script:
def args = task.ext.args ?: ''
"""
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Rscript ${projectDir}/bin/kmerclust_load.R ${params_csv} ${csv} ${specie}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Rkmerclust: 0.0.1
END_VERSIONS
"""
}
process KMERCLUST {
tag "$specie"
label 'big_mem_multi_cpus'
container "lbmc/kmerclust:0.0.2"
publishDir "results/${params.kmer_size}/${specie}/", mode: 'copy'
input:
tuple val(id), val(specie), path(rdata)
output:
tuple val(specie), path("*.Rdata"), emit: rdata
path "versions.yml" , emit: versions
script:
def args = task.ext.args ?: ''
"""
Rscript ${projectDir}/bin/kmerclust.R ${specie} ${task.cpus} ${id}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Rkmerclust: 0.0.1
END_VERSIONS
"""
}
process KMERCLUST_MERGE {
tag "$specie"
container "lbmc/kmerclust:0.0.2"
publishDir "results/${params.kmer_size}/${specie}/", mode: 'copy'
input:
tuple val(specie), path(rdata)
output:
tuple val(specie), path("*.Rdata"), emit: rdata
path "versions.yml" , emit: versions
script:
def args = task.ext.args ?: ''
"""
Rscript ${projectDir}/bin/kmerclust_merge.R ${specie}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Rkmerclust: 0.0.1
END_VERSIONS
"""
}
process KMERCLUST_PLOT {
tag "$specie"
label 'big_mem_mono_cpus'
container "lbmc/kmerclust:0.0.2"
publishDir "results/${params.kmer_size}/${specie}/", mode: 'copy'
input:
tuple val(specie), path(rdata)
output:
tuple val(specie), path("*.pdf"), emit: pdf
path "versions.yml" , emit: versions
script:
def args = task.ext.args ?: ''
"""
Rscript ${projectDir}/bin/kmerclust_plot.R ${specie}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Rkmerclust: 0.0.1
END_VERSIONS
"""
}