forked from gymrek-lab/TRTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (41 loc) · 1.26 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
FROM ubuntu:20.04
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -qqy \
python3 \
python3-pip \
python \
python-dev \
awscli \
build-essential \
git \
libbz2-dev \
liblzma-dev \
make \
pkg-config \
wget \
unzip \
zlib1g-dev
RUN pip3 install pybedtools pyvcf scipy numpy
# Install samtools (needed to index reference fasta files)
RUN wget -O samtools-1.9.tar.bz2 https://github.com/samtools/samtools/releases/download/1.9/samtools-1.9.tar.bz2
RUN tar -xjf samtools-1.9.tar.bz2
WORKDIR samtools-1.9
RUN ./configure --without-curses && make && make install
WORKDIR ..
# Install bedtools (needed for DumpSTR)
RUN wget -O bedtools-2.27.1.tar.gz https://github.com/arq5x/bedtools2/releases/download/v2.27.1/bedtools-2.27.1.tar.gz
RUN tar -xzvf bedtools-2.27.1.tar.gz
WORKDIR bedtools2
RUN make && make install
WORKDIR ..
# Download, compile, and install GangSTR
RUN wget -O GangSTR-2.4.tar.gz https://github.com/gymreklab/GangSTR/releases/download/v2.4/GangSTR-2.4.tar.gz
RUN tar -xzvf GangSTR-2.4.tar.gz
WORKDIR GangSTR-2.4
RUN ./install-gangstr.sh
RUN ldconfig
WORKDIR ..
# Download and install TRTools
RUN git clone https://github.com/gymreklab/TRTools
WORKDIR TRTools
RUN python3 setup.py install
WORKDIR ..