-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
68 lines (56 loc) · 2.46 KB
/
Dockerfile
File metadata and controls
68 lines (56 loc) · 2.46 KB
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
FROM centos:7
LABEL maintainer="Jaeyoung Chun (chunj@mskcc.org)" \
version.seqc="0.2.11" \
version.star="2.5.3a" \
version.samtools="1.10" \
source.seqc="https://github.com/dpeerlab/seqc/releases/tag/v0.2.11" \
source.star="https://github.com/alexdobin/STAR/releases/tag/2.5.3a" \
source.samtools="https://github.com/samtools/samtools/releases/tag/1.10"
ENV SEQC_VERSION 0.2.11
ENV MINICONDA_VERSION 4.8.3
ENV STAR_VERSION 2.5.3a
ENV SAMTOOLS_VERSION 1.10
ENV LC_ALL en_US.utf-8
ENV PATH="/opt/conda/bin:${PATH}"
# SEQC requires this
ENV TMPDIR "/tmp"
RUN yum group install -y "Development Tools" \
&& cd /tmp \
&& curl -OL https://repo.anaconda.com/miniconda/Miniconda3-py37_${MINICONDA_VERSION}-Linux-x86_64.sh \
&& bash Miniconda3-py37_${MINICONDA_VERSION}-Linux-x86_64.sh -b -p /opt/conda \
&& rm -rf Miniconda3-py37_${MINICONDA_VERSION}-Linux-x86_64.sh \
&& ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh \
&& echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc \
&& pip install --upgrade pip
RUN cd /tmp \
&& curl -OL https://github.com/alexdobin/STAR/archive/${STAR_VERSION}.tar.gz \
&& tar -xf ${STAR_VERSION}.tar.gz \
&& cp STAR-${STAR_VERSION}/bin/Linux_x86_64_static/STAR /usr/bin/
RUN cd /tmp \
&& yum install -y zlib-devel ncurses-devel bzip2-devel xz-devel \
&& curl -OL https://github.com/samtools/samtools/releases/download/${SAMTOOLS_VERSION}/samtools-${SAMTOOLS_VERSION}.tar.bz2 \
&& tar xjvf samtools-${SAMTOOLS_VERSION}.tar.bz2 \
&& cd samtools-${SAMTOOLS_VERSION} \
&& ./configure --prefix=/usr/local \
&& make \
&& make install
RUN cd /opt \
&& yum install -y cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel pigz \
&& yum install -y mutt \
&& pip install Cython \
&& pip install numpy \
&& pip install bhtsne \
&& curl -OL https://github.com/dpeerlab/seqc/archive/v${SEQC_VERSION}.tar.gz \
&& tar xvzf v${SEQC_VERSION}.tar.gz \
&& rm -rf v${SEQC_VERSION}.tar.gz \
&& cd seqc-${SEQC_VERSION} \
&& pip install . \
&& cp `python -c "import site; print(site.getsitepackages()[0])"`/matplotlib/mpl-data/fonts/ttf/DejaVuS* /usr/share/fonts/ \
&& fc-cache -fv
RUN rm -rf /tmp/*
WORKDIR /root/
ENTRYPOINT ["SEQC"]
CMD ["-h"]
# install development tools which contains e.g. gcc
# install miniconda v4.5.1 which comes with Python 3.6.5 + pip
# install the SEQC dependencies