-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (38 loc) · 1.63 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
FROM ubuntu:20.04
# somatic sniper's test fails if python is not installed
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
git-core \
cmake \
zlib1g-dev \
libncurses-dev \
wget \
ca-certificates \
python \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /somatic-sniper
RUN wget https://github.com/genome/somatic-sniper/archive/v1.0.5.0.tar.gz \
&& tar xzf v1.0.5.0.tar.gz \
&& rm v1.0.5.0.tar.gz \
&& cd somatic-sniper-1.0.5.0 \
&& mkdir build \
&& cd build \
&& cmake ../ \
&& make deps \
&& make -j \
&& make test \
&& make install
# Use specific samtools included in SomaticSniper and make scripts executable
# The fpfilter script has an error in the #! line where the perl executable is in the wrong path
RUN ln -s /somatic-sniper/somatic-sniper-1.0.5.0/build/vendor/samtools/samtools /usr/local/bin/samtools \
&& ln -s /somatic-sniper/somatic-sniper-1.0.5.0/build/vendor/samtools/misc/samtools.pl /usr/local/bin/samtools.pl \
&& sed -i "s/#!\/gsc\/bin\/perl/#!\/usr\/bin\/perl/g" /somatic-sniper/somatic-sniper-1.0.5.0/src/scripts/fpfilter.pl \
&& chmod +x /somatic-sniper/somatic-sniper-1.0.5.0/src/scripts/fpfilter.pl \
&& chmod +x /somatic-sniper/somatic-sniper-1.0.5.0/src/scripts/highconfidence.pl \
&& chmod +x /somatic-sniper/somatic-sniper-1.0.5.0/src/scripts/prepare_for_readcount.pl \
&& chmod +x /somatic-sniper/somatic-sniper-1.0.5.0/src/scripts/snpfilter.pl
# Make scripts available on PATH
ENV PATH "$PATH:/somatic-sniper/somatic-sniper-1.0.5.0/src/scripts"
WORKDIR /app
CMD ["bash"]