-
Notifications
You must be signed in to change notification settings - Fork 62
/
Dockerfile
70 lines (58 loc) · 2.38 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Dockerfile for ENCODE-DCC rna-seq-pipeline
FROM ubuntu@sha256:2695d3e10e69cc500a16eae6d6629c803c43ab075fa5ce60813a0fc49c47e859
MAINTAINER Otto Jolanki
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
python3-dev \
python3-pip \
wget \
git \
unzip \
bzip2 \
# libcurses is a samtools dependency
libncurses5-dev \
r-base-core \
ghostscript && rm -rf /var/lib/apt/lists/*
RUN pip3 install pandas==0.24.2
RUN pip3 install pysam==0.15.3
# Add mountpoint directory
RUN mkdir /data
# Stick to Jin's way of organizing the directory structure
RUN mkdir /software
WORKDIR /software
ENV PATH="/software:${PATH}"
# Install STAR/Samtools dependencies
RUN wget http://zlib.net/zlib-1.2.11.tar.gz && tar -xvf zlib-1.2.11.tar.gz
RUN cd zlib-1.2.11 && ./configure && make && make install && rm ../zlib-1.2.11.tar.gz
RUN wget https://tukaani.org/xz/xz-5.2.3.tar.gz && tar -xvf xz-5.2.3.tar.gz
RUN cd xz-5.2.3 && ./configure && make && make install && rm ../xz-5.2.3.tar.gz
# Install STAR 2.5.1b
RUN wget https://github.com/alexdobin/STAR/archive/2.5.1b.tar.gz && tar -xzf 2.5.1b.tar.gz
RUN cd STAR-2.5.1b && make STAR && rm ../2.5.1b.tar.gz
ENV PATH="/software/STAR-2.5.1b/bin/Linux_x86_64:${PATH}"
# Install Kallisto 0.44.0
RUN wget https://github.com/pachterlab/kallisto/releases/download/v0.44.0/kallisto_linux-v0.44.0.tar.gz && tar -xzf kallisto_linux-v0.44.0.tar.gz
ENV PATH="/software/kallisto_linux-v0.44.0:${PATH}"
# Install Samtools 1.9
RUN git clone --branch 1.9 --single-branch https://github.com/samtools/samtools.git && \
git clone --branch 1.9 --single-branch git://github.com/samtools/htslib.git && \
cd samtools && make && make install && cd ../ && rm -rf samtools* htslib*
# Install RSEM 1.2.31
RUN wget https://github.com/deweylab/RSEM/archive/v1.2.31.zip
RUN unzip v1.2.31.zip && rm v1.2.31.zip
RUN cd RSEM-1.2.31 && make
ENV PATH="/software/RSEM-1.2.31:${PATH}"
# Install kentutils 385
RUN git clone https://github.com/ENCODE-DCC/kentutils_v385_bin_bulkrna.git
ENV PATH=${PATH}:/software/kentutils_v385_bin_bulkrna/
# Install qc-utils 19.8.1 and ptools
RUN pip3 install qc-utils==19.8.1 ptools_bin==0.0.7
RUN mkdir -p rna-seq-pipeline/src
COPY /src rna-seq-pipeline/src
ENV PATH="/software/rna-seq-pipeline/src:${PATH}"
ARG GIT_COMMIT_HASH
ENV GIT_HASH=${GIT_COMMIT_HASH}
ARG BRANCH
ENV BUILD_BRANCH=${BRANCH}
ARG BUILD_TAG
ENV MY_TAG=${BUILD_TAG}