-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
76 lines (64 loc) · 1.71 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
71
72
73
74
75
76
FROM python:2.7
MAINTAINER Wan-Ping Lee <wan-ping.lee@jax.org>
# Packaged dependencies
RUN apt-get update && apt-get install -y \
git \
libxpm-dev \
libxft-dev \
libbz2-dev \
libroot-core-dev \
vim \
perl \
python2.7-dev \
python-numpy \
openjdk-7-* \
gawk \
libgd-gd2-perl
# Make a folder for tools
RUN cd / && mkdir -p tools && cd /tools
# Install cmake 3.10
RUN cd /tools \
&& wget https://cmake.org/files/v3.10/cmake-3.10.0-rc5.tar.gz \
&& tar -zxvf cmake-3.10.0-rc5.tar.gz \
&& cd cmake-3.10.0-rc5 \
&& ./bootstrap \
&& make -j8 \
&& make install
# Install ROOT
RUN cd /tools \
&& git clone http://root.cern.ch/git/root.git \
&& cd root/build \
&& cmake .. \
&& cmake --build . -- -j8 \
&& cmake --build . --target install -- -j8
# Set the ROOT path
ENV ROOTSYS=/tools/root/build
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
RUN pip install HTSeq \
scipy \
subprocess32 \
numpy \
bx-python \
CrossMap \
mygene \
biopython
# Install R-3.3.3
RUN cd /tools \
&& git clone --recursive https://github.com/TheJacksonLaboratory/SVE.git \
&& cd SVE \
&& make R-install
# Copy R to /usr/bin
RUN ln -s -t /usr/bin/ /tools/SVE/src/R-package/R-3.3.3/bin/R
RUN ln -s -t /usr/bin/ /tools/SVE/src/R-package/R-3.3.3/bin/Rscript
# Install SVE
RUN cd /tools/SVE \
&& make
# Upgrade bx-python; otherwise CrossMap won't work
# Build FusorSV
RUN cd /tools/SVE/scripts/FusorSV \
&& wget https://pypi.python.org/packages/55/db/fa76af59a03c88ad80494fc0df2948740bbd58cd3b3ed5c31319624687cc/bx-python-0.7.3.tar.gz \
&& pip install bx-python-0.7.3.tar.gz --upgrade \
&& python setup.py build_ext --inplace \
&& tar -zxvf data.tar.gz
# Define default command.
CMD ["/tools/SVE/bin/sve"]