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

change collate step to collate by species

parent 43dd449d
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ nextflow.enable.dsl=2 ...@@ -3,7 +3,7 @@ nextflow.enable.dsl=2
/* /*
Testing pipeline for marseq scRNASeq analysis Testing pipeline for marseq scRNASeq analysis
*/ */
params.kmer_size = 31 params.kmer_size = 12
include { SPLIT } from "./modules/split" include { SPLIT } from "./modules/split"
include { FASTKMERS } from "./modules/fastkmers" include { FASTKMERS } from "./modules/fastkmers"
...@@ -24,5 +24,5 @@ workflow { ...@@ -24,5 +24,5 @@ workflow {
SPLIT(fastq.r1.mix(fastq.r2)) SPLIT(fastq.r1.mix(fastq.r2))
FASTKMERS(SPLIT.out.fastq.transpose()) FASTKMERS(SPLIT.out.fastq.transpose())
MERGEKMER(FASTKMERS.out.csv.groupTuple()) MERGEKMER(FASTKMERS.out.csv.groupTuple())
COLLATEKMER(MERGEKMER.out.csv.map{it -> it[1]}.collect()) COLLATEKMER(MERGEKMER.out.csv.map{it -> [it[0].specie, it[1]] }.groupTuple())
} }
process FASTKMERS { process FASTKMERS {
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'
container "lbmc/fastkmers:025efdf" container "lbmc/fastkmers:025efdf"
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
process KMC { process KMC {
tag "$meta.id" tag "$meta.id"
label 'process_single' label 'process_single'
publishDir "results/${meta.specie}/${meta.sex}/${meta.read}/", mode: 'copy'
container "lbmc/kmc:3.2.2" container "lbmc/kmc:3.2.2"
......
process MERGEKMER { process MERGEKMER {
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'
container "lbmc/mergekmer:0.1.2" container "lbmc/mergekmer:0.1.2"
...@@ -26,14 +25,14 @@ process MERGEKMER { ...@@ -26,14 +25,14 @@ process MERGEKMER {
} }
process COLLATEKMER { process COLLATEKMER {
tag "$csv" tag "$specie"
label 'big_mem_mono_cpus' label 'big_mem_mono_cpus'
publishDir "results/", mode: 'copy' publishDir "results/${specie}/", mode: 'copy'
container "lbmc/mergekmer:0.1.2" container "lbmc/mergekmer:0.1.2"
input: input:
path(csv) tuple val(specie), path(csv)
output: output:
path("*.csv"), emit: csv path("*.csv"), emit: csv
...@@ -42,7 +41,7 @@ process COLLATEKMER { ...@@ -42,7 +41,7 @@ process COLLATEKMER {
script: script:
def args = task.ext.args ?: '' def args = task.ext.args ?: ''
""" """
mergekmer --csv ${csv} --output fusion.csv --collate mergekmer --csv ${csv} --output ${specie}.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