Skip to content

Commit

Permalink
added samtools to whatshap
Browse files Browse the repository at this point in the history
  • Loading branch information
dhspence committed Mar 2, 2024
1 parent a3ae576 commit 678118f
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion docker-whatshap/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,42 @@
FROM ghcr.io/dhslab/docker-python3:latest

LABEL Image with whatshap
LABEL Image with htslib, samtools and whatshap

# update as needed
RUN apt-get update -y && apt-get install -y --no-install-recommends

##############
#HTSlib 1.18#
##############
ENV HTSLIB_INSTALL_DIR=/opt/htslib

WORKDIR /tmp
RUN wget --no-check-certificate https://github.com/samtools/htslib/releases/download/1.18/htslib-1.18.tar.bz2 && \
tar --bzip2 -xvf htslib-1.18.tar.bz2 && \
cd /tmp/htslib-1.18 && \
./configure --enable-plugins --prefix=$HTSLIB_INSTALL_DIR && \
make && \
make install && \
cp $HTSLIB_INSTALL_DIR/lib/libhts.so* /usr/lib/ && \
ln -s $HTSLIB_INSTALL_DIR/bin/tabix /usr/bin/tabix && \
ln -s $HTSLIB_INSTALL_DIR/bin/bgzip /usr/bin/bgzip && \
rm -Rf /tmp/htslib-1.18

################
#Samtools 1.18#
################
ENV SAMTOOLS_INSTALL_DIR=/opt/samtools

WORKDIR /tmp
RUN wget --no-check-certificate https://github.com/samtools/samtools/releases/download/1.18/samtools-1.18.tar.bz2 && \
tar --bzip2 -xf samtools-1.18.tar.bz2 && \
cd /tmp/samtools-1.18 && \
./configure --with-htslib=$HTSLIB_INSTALL_DIR --prefix=$SAMTOOLS_INSTALL_DIR && \
make && \
make install && \
ln -s /opt/samtools/bin/* /usr/local/bin/ && \
cd / && \
rm -rf /tmp/samtools-1.18


RUN pip3 install whatshap

0 comments on commit 678118f

Please sign in to comment.