forked from gymreklab/chips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (37 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ubuntu:16.04
# Update necessary packages
RUN apt-get update && apt-get install -qqy \
autoconf \
autoconf-archive \
build-essential \
default-jre \
git \
libtool libtool-bin \
libbz2-dev \
liblzma-dev \
make \
pkg-config \
wget \
zlib1g-dev
# Install htslib
RUN mkdir /dependencies
WORKDIR /dependencies
RUN wget -O htslib-1.8.tar.bz2 https://github.com/samtools/htslib/releases/download/1.8/htslib-1.8.tar.bz2
RUN tar -xjvf htslib-1.8.tar.bz2
WORKDIR htslib-1.8
RUN ./configure --prefix=/usr/local --disable-lzma --disable-bz2 && make && make install
# Add samtools
WORKDIR /dependencies
RUN wget -O samtools-1.9.tar.bz2 https://github.com/samtools/samtools/releases/download/1.9/samtools-1.9.tar.bz2
RUN tar -xjf samtools-1.9.tar.bz2
WORKDIR samtools-1.9
RUN ./configure --without-curses && make && make install
# Install ChIPmunk
WORKDIR /dependencies
COPY chipmunk-1.8.tar.gz /dependencies/chipmunk-1.8.tar.gz
RUN tar -xzvf chipmunk-1.8.tar.gz
WORKDIR /dependencies/chipmunk-1.8
RUN ./configure && make && make install
# Install Picard
RUN wget -O /dependencies/picard.jar https://github.com/broadinstitute/picard/releases/download/2.18.27/picard.jar
ENV PICARD=/dependencies/picard.jar