Skip to content

Commit

Permalink
Merge pull request #705 from maxplanck-ie/dev_wd
Browse files Browse the repository at this point in the history
alignerOpts for bwa
  • Loading branch information
WardDeb committed Oct 14, 2020
2 parents 9e9d0c9 + 25c1cbc commit 3964d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snakePipes/shared/rules/bwa.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if pairedEnd:
MYTEMP=$(mktemp -d ${{TMPDIR:-/tmp}}/snakepipes.XXXXXXXXXX);
bwa mem \
-t {threads} \
-R '@RG\\tID:{wildcards.sample}\\tDS:{wildcards.sample}\\tPL:ILLUMINA\\tSM:{wildcards.sample}' \
-R '@RG\\tID:{wildcards.sample}\\tDS:{wildcards.sample}\\tPL:ILLUMINA\\tSM:{wildcards.sample}' {params.alignerOpts} \
{params.bwa_index} {input.r1} {input.r2} | \
samtools view -Sb - | \
samtools sort -m 2G -@ 2 -O bam - > {output.bam} 2> {log};
Expand All @@ -44,7 +44,7 @@ else:
MYTEMP=$(mktemp -d ${{TMPDIR:-/tmp}}/snakepipes.XXXXXXXXXX);
bwa mem \
-t {threads} \
-R '@RG\\tID:{wildcards.sample}\\tDS:{wildcards.sample}\\tPL:ILLUMINA\\tSM:{wildcards.sample}' \
-R '@RG\\tID:{wildcards.sample}\\tDS:{wildcards.sample}\\tPL:ILLUMINA\\tSM:{wildcards.sample}' {params.alignerOpts}\
{params.bwa_index} {input} | \
samtools view -Sbu - | \
samtools sort -m 2G -T $MYTEMP/{wildcards.sample} -@ 2 -O bam - > {output.bam} 2> {log};
Expand Down

0 comments on commit 3964d9a

Please sign in to comment.