-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
95 lines (84 loc) · 2.6 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
FROM ubuntu:zesty
# Install dependencies for cellranger
RUN apt-get update \
&& apt-get install -y \
cython \
golang-1.8 \
libbz2-dev \
libcairo2-dev \
libcurl4-openssl-dev \
libgfortran-5-dev \
libffi-dev \
libhdf5-dev \
libncurses-dev \
libopenblas-dev \
libpixman-1-dev \
libpng-dev \
libsodium-dev \
libssl-dev \
libtiff5-dev \
libxml2-dev \
libxslt1-dev \
libzmq3-dev \
python-cairo \
python-h5py \
python-libtiff \
python-matplotlib \
python-nacl \
python-numpy \
python-pip \
python-libxml2 \
python-redis \
python-ruamel.yaml \
python-sip \
python-sqlite \
python-tables \
python-tk \
samtools \
zlib1g-dev
RUN ln -s /usr/lib/go-1.8/bin/go /usr/bin/go
COPY requirements.txt /opt/requirements.txt
RUN pip install -r /opt/requirements.txt
# Install rust and cargo. Note that installing with apt gets a rust that won't complie
# cellranger.
RUN apt-get install -y \
curl \
git \
&& curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH /root/.cargo/bin/:$PATH
# Build cellranger itself
RUN git clone https://github.com/mckinsel/cellranger.git \
&& cd cellranger \
&& make
# Install Martian. Note that we're just building the executables, not the web stuff
RUN git clone --recursive https://github.com/martian-lang/martian.git \
&& cd martian \
&& make mrc mrf mrg mrp mrs mrt_helper mrstat mrjob
# Set up paths to cellranger. This is most of what sourceme.bash would do.
ENV PATH /cellranger/bin/:/cellranger/lib/bin:/cellranger/tenkit/bin/:/cellranger/tenkit/lib/bin:/martian/bin/:$PATH
ENV PYTHONPATH /cellranger/lib/python:/cellranger/tenkit/lib/python:/martian/adapters/python:$PYTHONPATH
ENV MROPATH /cellranger/mro/:/cellranger/tenkit/mro/
ENV _TENX_LD_LIBRARY_PATH whatever
# Install bcl2fastq. mkfastq requires it.
RUN apt-get update \
&& apt-get install -y alien unzip wget \
&& wget https://support.illumina.com/content/dam/illumina-support/documents/downloads/software/bcl2fastq/bcl2fastq2-v2-19-1-linux.zip \
&& unzip bcl2fastq2*.zip \
&& alien bcl2fastq2*.rpm \
&& dpkg -i bcl2fastq2*.deb \
&& rm bcl2fastq2*.deb bcl2fastq2*.rpm bcl2fastq2*.zip
# Install STAR aligner
RUN wget https://github.com/alexdobin/STAR/archive/2.5.1b.tar.gz \
&& tar xf 2.5.1b.tar.gz \
&& rm 2.5.1b.tar.gz \
&& cd STAR-2.5.1b \
&& make \
&& mv bin/Linux_x86_64_static/STAR* /usr/bin \
&& cd .. \
&& rm -rf STAR-2.5.1b
# Install tsne python pacakge. pip installing it doesn't work
RUN git clone https://github.com/mckinsel/tsne.git \
&& cd tsne \
&& make install \
&& cd .. \
&& rm -rf tsne