Skip to content

Commit

Permalink
add pipefail so bwa/minimap2 errors are detected
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed May 30, 2024
1 parent 0ddfa5f commit b56c53c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Snakefiles/8-hicPipeline.sm
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ rule alignBWA:
cd 8-hicPipeline

cat > ./align_bwa{wildcards.nnnn}.sh <<EOF
#!/bin/sh
set -e
#!/usr/bin/env bash
set -e -o pipefail
if [ {params.withporec} = "False" ] ; then
echo "---Mapping {input.hic1} and {input.hic2} to {input.unitigs} with BWA"
{params.BWA} mem -t {threads} -5 -S -P ../{input.unitigs} ../{input.hic1} ../{input.hic2} | {params.SAMTOOLS} view -bh -@ {threads} -q 1 -F 0x900 - | {params.SAMTOOLS} sort -n -@ {threads} - -o ../{output.bwa_mapping}
Expand Down

0 comments on commit b56c53c

Please sign in to comment.