Skip to content

Commit

Permalink
Adding new docker image with bwa-mem2 wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Oct 21, 2024
1 parent e4aadb3 commit 0925a6f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/containers.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images": {
"genome-seek": "docker://skchronicles/genome-seek:v0.1.0",
"genome-seek_trim_map": "docker://skchronicles/genome-seek_trim_map:v0.1.0",
"genome-seek_trim_map": "docker://skchronicles/genome-seek_trim_map:v0.1.1",
"genome-seek_somatic": "docker://skchronicles/genome-seek_somatic:v0.1.0",
"genome-seek_qc": "docker://skchronicles/genome-seek_qc:v0.1.0",
"genome-seek_sv": "docker://skchronicles/genome-seek_sv:v0.2.0",
Expand All @@ -19,4 +19,4 @@
"sequenza": "docker://sequenza/sequenza:3.0.0",
"vcf2maf": "docker://skchronicles/ncbr_vcf2maf:v0.1.0"
}
}
}
19 changes: 17 additions & 2 deletions workflow/rules/trim_map.smk
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,23 @@ rule bwa_mem2:
if [ ! -d "{params.tmpdir}" ]; then mkdir -p "{params.tmpdir}"; fi
tmp=$(mktemp -d -p "{params.tmpdir}")
trap 'rm -rf "${{tmp}}"' EXIT
bwa-mem2 mem \\
# This wrapper to bwa-mem2 selects a
# compatible pre-compiled binary for
# Intel and AMD (Zen4) processors. The
# AVX-512 instruction set was added to
# processors with the release of Zen4.
# This instruction set is NOT compatible
# with the Intel-compiled AVX-512bw
# binary in the docker image. The wrapper
# detects whether it is running on an
# Intel or AMD processor and selects the
# appropriate binary. If AMD, it will use
# the AVX2 binary. If Intel, it uses the
# default entry point for bwa-mem2 which
# will select the best available based
# on available CPU information.
bwa-mem2-wrapper mem \\
-t {threads} \\
-K 100000000 \\
-M \\
Expand Down

0 comments on commit 0925a6f

Please sign in to comment.