forked from Gaius-Augustus/Augustus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-cgp-mysql
64 lines (51 loc) · 1.6 KB
/
Dockerfile-cgp-mysql
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
FROM ubuntu:18.04
# Install required packages
RUN apt-get update
RUN apt-get install -y build-essential wget git autoconf
# Install dependencies for AUGUSTUS
RUN apt-get install -y libboost-iostreams-dev zlib1g-dev
RUN apt-get install -y libgsl-dev libboost-graph-dev libsuitesparse-dev liblpsolve55-dev libsqlite3-dev libmysql++-dev
RUN apt-get install -y libbamtools-dev
RUN apt-get install -y libboost-all-dev
# Install additional dependencies for htslib and samtools
RUN apt-get install -y libbz2-dev liblzma-dev
RUN apt-get install -y libncurses5-dev
# Install additional dependencies for bam2wig
RUN apt-get install -y libssl-dev libcurl3-dev
# Build bam2wig dependencies (htslib, bfctools, samtools)
RUN git clone https://github.com/samtools/htslib.git /root/htslib
WORKDIR "/root/htslib"
RUN autoheader
RUN autoconf
RUN ./configure
RUN make
RUN make install
RUN git clone https://github.com/samtools/bcftools.git /root/bcftools
WORKDIR "/root/bcftools"
RUN autoheader
RUN autoconf
RUN ./configure
RUN make
RUN make install
RUN git clone https://github.com/samtools/samtools.git /root/samtools
WORKDIR "/root/samtools"
RUN autoheader
RUN autoconf -Wno-syntax
RUN ./configure
RUN make
RUN make install
ENV TOOLDIR="/root"
# Clone AUGUSTUS repository
ADD / /root/augustus
RUN sed -i "s/#.*MYSQL = true/MYSQL = true/g" /root/augustus/common.mk
RUN sed -i "s/# COMPGENEPRED = true/COMPGENEPRED = true/g" /root/augustus/common.mk
# Build bam2wig
RUN mkdir -p /root/augustus/bin
WORKDIR "/root/augustus/auxprogs/bam2wig"
RUN make
# Build AUGUSTUS
WORKDIR "/root/augustus"
RUN make
RUN make install
# Test AUGUSTUS
RUN make test