Skip to content

Commit

Permalink
Use Bioconda/BioContainers for bwa-mem2 module
Browse files Browse the repository at this point in the history
  • Loading branch information
scwatts committed Mar 19, 2024
1 parent c7f1774 commit 177bf69
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 21 deletions.
19 changes: 0 additions & 19 deletions modules/local/bwa-mem2/mem/Dockerfile

This file was deleted.

9 changes: 9 additions & 0 deletions modules/local/bwa-mem2/mem/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: bwa-mem2_mem
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- bioconda::bwa-mem2=2.2.1
- bioconda::samtools=1.19.2
- bioconda::sambamba=1.0
6 changes: 4 additions & 2 deletions modules/local/bwa-mem2/mem/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ process BWAMEM2_ALIGN {
tag "${meta.id}"
label 'process_high'

// TODO(SW): create BioContainers multi-package image when appropriate
container 'docker.io/scwatts/bwa-mem2:2.2.1'
conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/mulled-v2-4dde50190ae599f2bb2027cb2c8763ea00fb5084:544519c4a0ff7e9616a3b44afde1f143c52f10c3-0' :
'quay.io/biocontainers/mulled-v2-4dde50190ae599f2bb2027cb2c8763ea00fb5084:544519c4a0ff7e9616a3b44afde1f143c52f10c3-0' }"

input:
tuple val(meta), path(reads_fwd), path(reads_rev)
Expand Down

0 comments on commit 177bf69

Please sign in to comment.