-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
74 lines (64 loc) · 2.41 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
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ENV TrimGaloreVersion 0.6.5
ENV BedToolsVersion=2.27.1
ENV BamToolsVersion=2.4.0
ENV SamToolsVersion=1.9
ENV CutAdaptVersion=1.18
RUN apt-get update && \
apt-get install -y \
wget \
bc \
datamash \
curl \
grep \
build-essential \
zip \
unzip \
python3-pip \
python3.8 \
git \
zlib1g \
pigz \
libpcre2-dev \
r-base \
hdf5-tools \
libhdf5-dev \
libhdf5-serial-dev \
openjdk-8-jre-headless && \
ln -s /usr/bin/python3.8 /usr/local/bin/python && \
apt-get clean && \
apt-get purge && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
wget --quiet https://repo.continuum.io/miniconda/Miniconda2-4.0.5-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh
ENV PATH=$PATH:/opt/conda/bin
RUN conda config --add channels bioconda && \
conda upgrade conda
RUN pip3 install \
numpy \
scipy \
cutadapt==${CutAdaptVersion} \
biopython \
pysam
RUN wget https://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.9.zip -O fastqc.zip && \
unzip fastqc.zip -d /usr/local/ && \
rm fastqc.zip && \
ln -s /usr/local/FastQC/fastqc /usr/local/bin/
RUN wget https://github.com/FelixKrueger/TrimGalore/archive/refs/tags/${TrimGaloreVersion}.tar.gz -O TrimGalore.tar.gz && \
tar xvzf TrimGalore.tar.gz -C /usr/local/ && \
rm TrimGalore.tar.gz && \
ln -s /usr/local/TrimGalore-${TrimGaloreVersion}/trim_galore /usr/local/bin/
RUN conda install bedtools=${BedToolsVersion} && \
conda install bamtools=${BamToolsVersion} && \
conda install samtools=${SamToolsVersion}
RUN git clone https://github.com/andrewhill157/barcodeutils.git && \
cd barcodeutils/ && \
python setup.py install
RUN Rscript -e "install.packages('ggplot2')" && \
Rscript -e "install.packages('argparse')" && \
Rscript -e "install.packages('jsonlite')" && \
Rscript -e "install.packages('shiny')" && \
Rscript -e "install.packages('stringr')"