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

MERGEKMER: fix bug

parent bcbb832e
Branches
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ workflow { ...@@ -31,7 +31,7 @@ workflow {
SUBSAMPLE_READ(fastq.r1.mix(fastq.r2)) SUBSAMPLE_READ(fastq.r1.mix(fastq.r2))
SPLIT(SUBSAMPLE_READ.out.fastq) SPLIT(SUBSAMPLE_READ.out.fastq)
FASTKMERS(SPLIT.out.fastq.transpose()) FASTKMERS(SPLIT.out.fastq.transpose())
MERGEKMER(FASTKMERS.out.csv.map{it -> [[it[0][0], it[0][1], it[0][2]], it[1]]}.groupTuple()) MERGEKMER(FASTKMERS.out.csv.map{it -> [[it[0].specie, it[0].sex], it[1]]}.groupTuple())
COLLATEKMER( COLLATEKMER(
MERGEKMER.out.csv MERGEKMER.out.csv
.filter{ it[0].sex == "male" } .filter{ it[0].sex == "male" }
......
process MERGEKMER { process MERGEKMER {
tag "$meta.id" tag "$meta.specie $meta.sex"
label 'big_mem_mono_cpus' label 'big_mem_mono_cpus'
container "lbmc/mergekmer:0.1.2" container "lbmc/mergekmer:0.1.2"
...@@ -14,7 +14,7 @@ process MERGEKMER { ...@@ -14,7 +14,7 @@ process MERGEKMER {
script: script:
def args = task.ext.args ?: '' def args = task.ext.args ?: ''
""" """
mergekmer --csv ${csv} --output ${meta.id}.csv mergekmer --csv ${csv} --output ${meta.specie}_${meta.sex}.csv
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