Skip to content

Commit b56c53c

Browse files
committed
add pipefail so bwa/minimap2 errors are detected
1 parent 0ddfa5f commit b56c53c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Snakefiles/8-hicPipeline.sm

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ rule alignBWA:
300300
cd 8-hicPipeline
301301

302302
cat > ./align_bwa{wildcards.nnnn}.sh <<EOF
303-
#!/bin/sh
304-
set -e
303+
#!/usr/bin/env bash
304+
set -e -o pipefail
305305
if [ {params.withporec} = "False" ] ; then
306306
echo "---Mapping {input.hic1} and {input.hic2} to {input.unitigs} with BWA"
307307
{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}

0 commit comments

Comments
 (0)