From 1f430b33b2e7fa4ff5aee9d6688b56305cae5d80 Mon Sep 17 00:00:00 2001 From: Laurent Modolo <laurent.modolo@ens-lyon.fr> Date: Fri, 1 Mar 2019 16:44:37 +0100 Subject: [PATCH] BWA: add singularity def --- src/singularity_modules/BWA/0.7.17/BWA.def | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/singularity_modules/BWA/0.7.17/BWA.def diff --git a/src/singularity_modules/BWA/0.7.17/BWA.def b/src/singularity_modules/BWA/0.7.17/BWA.def new file mode 100644 index 0000000..b2c8b22 --- /dev/null +++ b/src/singularity_modules/BWA/0.7.17/BWA.def @@ -0,0 +1,46 @@ +Bootstrap: docker +From: ubuntu:18.04 + +%labels +MAINTAINER Laurent Modolo + +%post +BWA_VERSION=0.7.17 +SAMBLASTER_VERSION=0.1.24 + +PACKAGES=curl="7.58.0* \ +ca-certificates=20180409 \ +build-essential=12.4* \ +zlib1g-dev=1:1.2.11*" + +apt-get update && \ +apt-get install -y --no-install-recommends ${PACKAGES} && \ +apt-get clean + +curl -k -L https://github.com/biod/sambamba/releases/download/v${SAMBAMBA_VERSION}/sambamba_v${SAMBAMBA_VERSION}_linux.tar.bz2 -o sambamba_v${SAMBAMBA_VERSION}_linux.tar.bz2 && \ +tar xvjf sambamba_v${SAMBAMBA_VERSION}_linux.tar.bz2 && \ +mv sambamba /usr/bin/ && \ +rm -R sambamba_v${SAMBAMBA_VERSION}_linux* + +curl -k -L https://github.com/lh3/bwa/releases/download/v${BWA_VERSION}/bwa-${BWA_VERSION}.tar.bz2 -o bwa-v${BWA_VERSION}.tar.bz2 && \ +tar xjf bwa-v${BWA_VERSION}.tar.bz2 && \ +cd bwa-${BWA_VERSION}/ && \ +make && \ +cp bwa /usr/bin && \ +cd .. && \ +rm -R bwa-${BWA_VERSION}/ + +curl -k -L https://github.com/GregoryFaust/samblaster/releases/download/v.${SAMBLASTER_VERSION}/samblaster-v.${SAMBLASTER_VERSION}.tar.gz -o samblaster-v.${SAMBLASTER_VERSION}.tar.gz && \ +tar xvf samblaster-v.${SAMBLASTER_VERSION}.tar.gz && \ +cd samblaster-v.${SAMBLASTER_VERSION}/ && \ +make && \ +cp samblaster /usr/bin && \ +cd .. && \ +rm -R samblaster-v.${SAMBLASTER_VERSION}/ + +%environment +export BWA_VERSION=0.7.17 +export SAMBLASTER_VERSION=0.1.24 + +%runscript +exec /bin/bash "$@" -- GitLab