Skip to content

Commit

Permalink
Added RG tag info to BWA mem command
Browse files Browse the repository at this point in the history
  • Loading branch information
TCLamnidis committed Feb 7, 2024
1 parent 63bf3e7 commit b6cf17e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,11 @@ process {

withName: BWA_MEM {
tag = { "${meta.reference}|${meta.sample_id}_${meta.library_id}_L${meta.lane}" }
ext.args = { "-k ${params.mapping_bwamem_k} -r ${params.mapping_bwamem_r}" }
ext.args = {[
"-k ${params.mapping_bwamem_k}",
"-r ${params.mapping_bwamem_r}",
"-R '@RG\\tID:ILLUMINA-${meta.library_id}\\tSM:${meta.sample_id}\\tPL:illumina\\tPU:ILLUMINA-${meta.library_id}-${meta.strandedness}'"
].join(' ').trim() }
ext.prefix = { "${meta.sample_id}_${meta.library_id}_L${meta.lane}_${meta.reference}" }
publishDir = [
enabled: false
Expand Down

0 comments on commit b6cf17e

Please sign in to comment.