forked from ENCODE-DCC/rna-seq-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (56 loc) · 2.29 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
# Dockerfile for ENCODE-DCC rna-seq-pipeline
FROM ubuntu:16.04
MAINTAINER Otto Jolanki
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
RUN pip3 install pysam
# 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 BedGraphToBigWig and bedSort
RUN wget http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/bedGraphToBigWig && chmod +x bedGraphToBigWig
RUN wget http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/bedSort && chmod +x bedSort
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}
ENTRYPOINT ["/bin/bash", "-c"]