diff --git a/src/nf_modules/bwa/main.nf b/src/nf_modules/bwa/main.nf index 07bf30d31c71e71b4f0372840145290787b76905..dec6886c0051b6c9eee4a18ac671b83f5df8379f 100644 --- a/src/nf_modules/bwa/main.nf +++ b/src/nf_modules/bwa/main.nf @@ -66,7 +66,7 @@ bwa_mem_R = "@RG\\tID:${library}\\tSM:${library}\\tLB:lib_${library}\\tPL:illumi bwa mem -t ${task.cpus} \ ${params.mapping_fastq} \ -R '${bwa_mem_R}' \ -${index_id} ${reads[0]} ${reads[1]} 2> \ +${index} ${reads[0]} ${reads[1]} 2> \ ${file_prefix}_bwa_report.txt | \ samtools view -@ ${task.cpus} -Sb - > ${file_prefix}.bam """ @@ -75,7 +75,7 @@ ${index_id} ${reads[0]} ${reads[1]} 2> \ bwa mem -t ${task.cpus} \ ${params.mapping_fastq} \ -R '${bwa_mem_R}' \ -${index_id} ${reads} 2> \ +${index} ${reads} 2> \ ${file_prefix}_bwa_report.txt | \ samtools view -@ ${task.cpus} -Sb - > ${file_prefix}.bam """