Skip to content
Snippets Groups Projects
Verified Commit e5bd9289 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

hisat2: add samtools to singularity modules

parent 1079c069
Branches
Tags
No related merge requests found
Bootstrap: docker Bootstrap: docker
From: ubuntu:18.04 From: alpine:3.8
%labels %labels
MAINTAINER Nicolas Fontrodona MAINTAINER Laurent Modolo
%post %post
SAMTOOLS_VERSION=1.7
HISAT2_VERSION=2.0.0 HISAT2_VERSION=2.0.0
PACKAGES="unzip \ PACKAGES="git \
gcc \ make \
g++ \ gcc \
make \ musl-dev \
curl \ zlib-dev \
ca-certificates" ncurses-dev \
bzip2-dev \
xz-dev \
bash \
curl \
zip \
g++ \
perl \
python"
apk update && \
apk add ${PACKAGES}
apt-get update && \ git clone https://github.com/samtools/htslib.git && \
apt-get install -y --no-install-recommends ${PACKAGES} && \ cd htslib && \
apt-get clean git checkout ${SAMTOOLS_VERSION} && \
cd .. && \
git clone https://github.com/samtools/samtools.git && \
cd samtools && \
git checkout ${SAMTOOLS_VERSION} && \
make && \
cp samtools /usr/bin/
curl -k -L http://ccb.jhu.edu/software/hisat2/downloads/hisat2-${HISAT2_VERSION}-beta-source.zip -o hisat2_linux-v${HISAT2_VERSION}.zip && \ curl -k -L http://ccb.jhu.edu/software/hisat2/downloads/hisat2-${HISAT2_VERSION}-beta-source.zip -o hisat2_linux-v${HISAT2_VERSION}.zip && \
unzip hisat2_linux-v${HISAT2_VERSION}.zip && \ unzip hisat2_linux-v${HISAT2_VERSION}.zip && \
...@@ -26,6 +43,7 @@ cp hisat2-* /usr/bin && \ ...@@ -26,6 +43,7 @@ cp hisat2-* /usr/bin && \
rm -Rf hisat2-${HISAT2_VERSION}-beta rm -Rf hisat2-${HISAT2_VERSION}-beta
%environment %environment
export SAMTOOLS_VERSION=1.7
export HISAT2_VERSION=2.0.0 export HISAT2_VERSION=2.0.0
%runscript %runscript
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment