-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
77 lines (65 loc) · 2.74 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
75
76
# Copyright (c) 2014-2017, Centre for Genomic Regulation (CRG).
# Copyright (c) 2014-2017, Jose Espinosa-Carrasco and the respective authors.
#
# This file is part of Pergola.
#
# Pergola is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Pergola is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Pergola. If not, see <http://www.gnu.org/licenses/>.
#
################################################################
# Dockerfile to build Pergola and all dependencies to reproduce
# pergola paper results
################################################################
FROM r-base:3.3.2
MAINTAINER Jose Espinosa-Carrasco <espinosacarrascoj@gmail.com>
RUN apt-get update && \
apt-get install --fix-missing -y \
sudo \
python \
python-dev \
python-distribute \
python-pip \
bedtools
RUN pip install pybedtools
## pergola installation
COPY pergola/pergola /pergola/pergola
COPY pergola/requirements.txt /pergola/
COPY pergola/setup.py /pergola/
COPY pergola/README.md /pergola/
RUN pip install -r /pergola/requirements.txt && \
pip install cython && \
pip install h5py && \
apt-get install -y python-scipy && \
cd pergola && python setup.py install
## install R dependencies
RUN apt-get update && \
apt-get install --fix-missing -y \
gdebi-core \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev/unstable \
libxt-dev \
libssl-dev \
libxml2-dev \
gfortran \
libhdf5-dev
## Install R packages
RUN R -e "install.packages(c('Sushi', 'shiny', 'rmarkdown', 'ggplot2', 'XML', 'Rcurl','cowplot', 'dplyr', 'survival', 'gridExtra', 'utils', 'gutils', 'gtools', 'ggrepel', 'extrafont', 'devtools', 'withr'), repos='http://cran.rstudio.com/')" \
&& Rscript -e 'source("http://bioconductor.org/biocLite.R"); biocLite("GenomicRanges"); biocLite("rtracklayer"); biocLite("Sushi");'
# Two versions of gviz, display time axis as fps or time units
RUN bash -c 'mkdir -p /gviz/fps; mkdir -p /gviz/time'
# version of Gviz modified to show time units instead of genomics units
RUN R -e 'withr::with_libpaths(new = "/gviz/time", devtools::install_github("JoseEspinosa/Gviz"))'
## version of Gviz modified to show fps instead of genomics units
RUN R -e 'withr::with_libpaths(new = "/gviz/fps", devtools::install_github("JoseEspinosa/Gviz", ref = "fps"))'