-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (51 loc) · 2.29 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
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ARG star_version=2.7.10a_alpha_220818
ARG samtools_version=1.15.1
ARG bbmap_version=38.97
ARG rsem_version=1.3.3
#Install OS packages
RUN apt-get update && apt-get -y --no-install-recommends -qq install \
wget gcc build-essential software-properties-common libz-dev \
git libncurses5-dev libbz2-dev liblzma-dev default-jre bsdmainutils
#Install STAR
RUN wget --no-check-certificate https://github.com/alexdobin/STAR/archive/${star_version}.tar.gz && \
tar -xzf ${star_version}.tar.gz -C /opt && \
cd /opt/STAR-${star_version}/source && \
make STAR CXXFLAGS_SIMD="-msse4.2" && \
cd / && rm ${star_version}.tar.gz
#Install seqtk
RUN git clone https://github.com/lh3/seqtk.git && \
mv seqtk /opt && \
cd /opt/seqtk && \
make
#Install samtools
RUN wget https://github.com/samtools/samtools/releases/download/${samtools_version}/samtools-${samtools_version}.tar.bz2 && \
tar -xvf samtools-${samtools_version}.tar.bz2 -C /opt && \
cd /opt/samtools-${samtools_version} && \
./configure && \
make && \
make install && \
cd / && rm samtools-${samtools_version}.tar.bz2
#Install BBMap
RUN wget https://sourceforge.net/projects/bbmap/files/BBMap_${bbmap_version}.tar.gz && \
tar -xzf BBMap_${bbmap_version}.tar.gz -C /opt && \
cd /opt/bbmap && \
./stats.sh in=resources/phix174_ill.ref.fa.gz && \
cd / && rm BBMap_${bbmap_version}.tar.gz
#Install RSEM
RUN wget https://github.com/deweylab/RSEM/archive/refs/tags/v${rsem_version}.tar.gz && \
tar -xzf v${rsem_version}.tar.gz -C /opt && \
cd /opt/RSEM-${rsem_version} && \
make && \
cd / && rm v${rsem_version}.tar.gz
#Install bamcollate2
RUN apt-get -y --no-install-recommends -qq install biobambam2
ENV PATH="${PATH}:/opt/STAR-${star_version}/source:/opt/seqtk:/opt/bbmap:/opt/RSEM-${rsem_version}"
#Saving Software Versions to a file
RUN echo "STAR version: ${star_version}" >> versions.txt && \
echo "samtools version: ${samtools_version}" >> versions.txt && \
echo "BBMap version: ${bbmap_version}" >> versions.txt && \
echo "RSEM version: ${rsem_version}" >> versions.txt && \
seqtk_version=`strings $(which seqtk) | grep 'Version:' | cut -f 2 -d " "` && \
echo "seqtk version: ${seqtk_version}" >> versions.txt