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

nf_module: set index to be the 2nd input for mapping

parent ad62a240
No related branches found
No related tags found
No related merge requests found
...@@ -35,8 +35,8 @@ process mapping_fastq_pairedend { ...@@ -35,8 +35,8 @@ process mapping_fastq_pairedend {
publishDir "results/mapping/bams/", mode: 'copy' publishDir "results/mapping/bams/", mode: 'copy'
input: input:
path index
tuple val(pair_id), path(reads) tuple val(pair_id), path(reads)
path index.collect()
output: output:
tuple val(pair_id), path("*.bam"), emit: bam tuple val(pair_id), path("*.bam"), emit: bam
...@@ -74,8 +74,8 @@ process mapping_fastq_singleend { ...@@ -74,8 +74,8 @@ process mapping_fastq_singleend {
publishDir "results/mapping/bams/", mode: 'copy' publishDir "results/mapping/bams/", mode: 'copy'
input: input:
path index
tuple val(file_id), path(reads) tuple val(file_id), path(reads)
path index.collect()
output: output:
set file_id, "*.bam", emit: bam set file_id, "*.bam", emit: bam
......
...@@ -29,8 +29,8 @@ process mapping_fastq_pairedend { ...@@ -29,8 +29,8 @@ process mapping_fastq_pairedend {
publishDir "results/mapping/counts/", mode: 'copy' publishDir "results/mapping/counts/", mode: 'copy'
input: input:
path index
tuple val(pair_id), path(reads) tuple val(pair_id), path(reads)
path index.collect()
output: output:
path "${pair_id}", emit: counts path "${pair_id}", emit: counts
...@@ -53,8 +53,8 @@ process mapping_fastq_singleend { ...@@ -53,8 +53,8 @@ process mapping_fastq_singleend {
publishDir "results/mapping/counts/", mode: 'copy' publishDir "results/mapping/counts/", mode: 'copy'
input: input:
path index
tuple val(file_id), path(reads) tuple val(file_id), path(reads)
path index.collect()
output: output:
path "${pair_id}", emit: counts path "${pair_id}", emit: counts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment