-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
72 lines (61 loc) · 2.28 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
##
## This Docker file builds an image for running the ATACseeker pipeline.
##
FROM ubuntu:14.04
#FROM openjdk:7
MAINTAINER Asif Zubair <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
## Getting ready to install R
RUN echo 'deb http://cran.stat.ucla.edu//bin/linux/ubuntu trusty/' | tee -a /etc/apt/sources.list.d/r.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
## Installing required packages.
RUN apt-get update && apt-get install -y --force-yes \
bedtools \
bwa \
cmake \
git \
libcurl4-gnutls-dev \
libssh2-1-dev \
libssl-dev \
libxml2-dev \
parallel \
python \
r-base \
r-base-dev \
software-properties-common \
vcftools \
wget \
zlib1g-dev
## Make ATACseeker directory.
RUN mkdir /atacseeker
## Copy scripts & reference to atacseeker folder
COPY atacseeker/ext_tools /atacseeker/ext_tools
COPY atacseeker/reference /atacseeker/reference
COPY atacseeker/scripts /atacseeker/scripts
## Install bedGraphToBigWig
RUN wget --directory-prefix=/tmp http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/bedGraphToBigWig
RUN cp /tmp/bedGraphToBigWig /usr/local/bin && \
chmod +x /usr/local/bin/bedGraphToBigWig
## Install github packages
RUN bash /atacseeker/scripts/install_git_packages.sh
## Install java
RUN add-apt-repository ppa:webupd8team/java -y && \
apt-get update && \
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
apt-get install -y oracle-java7-installer
## Install R packages
RUN Rscript /atacseeker/scripts/install_packages.R
## Install RStudio for pandoc libraries, required for rmarkdown
## RStudio is removed once pandoc has been copied to bin
RUN wget --directory-prefix=/tmp https://download1.rstudio.org/rstudio-0.99.486-amd64-debian.tar.gz
RUN tar -zxvf /tmp/rstudio-0.99.486-amd64-debian.tar.gz -C /tmp && \
cp /tmp/rstudio-0.99.486/bin/pandoc/* /bin && \
rm -rf /tmp/rstudio*
## Install samtools
RUN wget --directory-prefix=/tmp https://github.com/samtools/samtools/releases/download/1.3.1/samtools-1.3.1.tar.bz2
RUN tar -jxvf /tmp/samtools-1.3.1.tar.bz2 -C /tmp && \
cd /tmp/samtools-1.3.1 && \
make && \
make prefix=/usr/local install && \
cd /tmp && \
rm -rf /tmp/samtools-1.3.1*