Skip to content
Snippets Groups Projects
Verified Commit a7d66307 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

fix collatekmer

parent f9892e16
No related branches found
No related tags found
No related merge requests found
...@@ -27,5 +27,5 @@ workflow { ...@@ -27,5 +27,5 @@ workflow {
FASTKMERS(SPLIT.out.fastq.transpose()) FASTKMERS(SPLIT.out.fastq.transpose())
MERGEKMER(FASTKMERS.out.csv.groupTuple(size: 10)) MERGEKMER(FASTKMERS.out.csv.groupTuple(size: 10))
MERGEKMER2(MERGEKMER.out.csv.groupTuple()) MERGEKMER2(MERGEKMER.out.csv.groupTuple())
COLLATEKMER(MERGEKMER2.out.csv) COLLATEKMER(MERGEKMER2.out.csv.map{it -> it[1]}.collect())
} }
...@@ -28,12 +28,12 @@ process MERGEKMER { ...@@ -28,12 +28,12 @@ process MERGEKMER {
process COLLATEKMER { process COLLATEKMER {
tag "$meta.id" tag "$meta.id"
label 'big_mem_mono_cpus' label 'big_mem_mono_cpus'
publishDir "results/${meta.specie}/${meta.sex}/${meta.read}/", mode: 'copy' publishDir "results/", mode: 'copy'
container "lbmc/mergekmer:0.1.1" container "lbmc/mergekmer:0.1.1"
input: input:
tuple val(meta), path(csv) path(csv)
output: output:
tuple val(meta), path("*.csv"), emit: csv tuple val(meta), path("*.csv"), emit: csv
...@@ -42,7 +42,7 @@ process COLLATEKMER { ...@@ -42,7 +42,7 @@ process COLLATEKMER {
script: script:
def args = task.ext.args ?: '' def args = task.ext.args ?: ''
""" """
mergekmer --csv ${csv} --output ${meta.id}.csv --collate mergekmer --csv ${csv} --output final.csv --collate
cat <<-END_VERSIONS > versions.yml cat <<-END_VERSIONS > versions.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment