Skip to content

Commit

Permalink
remove -p on dnaseq bwa align (prevents using mate pair)
Browse files Browse the repository at this point in the history
  • Loading branch information
riasc committed Mar 13, 2024
1 parent f3c9234 commit 3f7ba61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions workflow/rules/align.smk
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ rule realign:
"""



### workflow when aligning paired-end fastq files for DNAseq
if config['data']['dnaseq_filetype'] in ['.fq','.fastq']:
rule bwa_align_dnaseq:
Expand All @@ -232,7 +231,7 @@ if config['data']['dnaseq_filetype'] in ['.fq','.fastq']:
threads: config['threads']
shell:
"""
bwa mem -pt{threads} -C resources/refs/bwa/genome {input.reads} \
bwa mem -t{threads} -C resources/refs/bwa/genome {input.reads} \
| samtools addreplacerg -r ID:{wildcards.group} -r SM:{wildcards.sample} \
-r LB:{wildcards.sample} -r PL:ILLUMINA -r PU:{wildcards.group} - - \
| samtools sort -@ 6 -n -m1g - -o {output} > {log} 2>&1
Expand Down

0 comments on commit 3f7ba61

Please sign in to comment.