-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
34 lines (25 loc) · 1.5 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
# build as ../ichorcna:v0.5.0
FROM rocker/r-base:4.2.2
RUN apt-get update --fix-missing -y
RUN apt-get install -y cmake
RUN apt-get install -y libcurl4-openssl-dev libssl-dev
## because there is no release to tether to, pick today's most recent commit. Done 1/31/2022
RUN wget https://github.com/shahcompbio/hmmcopy_utils/archive/29a8d1d.zip && unzip 29a8d1d.zip
RUN cmake ./hmmcopy_utils-29a8d1d18dfd301600d5d91832e5fe231935058c && make
## BioC packages
RUN R -e "install.packages('BiocManager',dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "BiocManager::install('HMMcopy', ask = F, version = '3.16')"
RUN R -e "BiocManager::install('GenomicRanges', ask = F,version = '3.16')"
RUN R -e "BiocManager::install('GenomeInfoDb', ask = F, version = '3.16')"
RUN apt-get install -y libxml2-dev
RUN R -e "BiocManager::install('BSgenome.Hsapiens.UCSC.hg19', ask = F, version = '3.16')"
RUN R -e "BiocManager::install('BSgenome.Hsapiens.UCSC.hg38', ask = F, version = '3.16')"
RUN R -e "install.packages('remotes', dependencies = TRUE)"
## CRAN packages
RUN R -e "install.packages(c('foreach', 'data.table','doMC', 'ggplot2', 'strings'),dependencies=TRUE, repos='http://cran.rstudio.com/')"
# Install from github
RUN R -e "remotes::install_github('GavinHaLab/ichorCNA@v0.5.0', dependencies = TRUE)"
# Download support data
RUN wget https://github.com/GavinHaLab/ichorCNA/archive/refs/tags/v0.5.0.zip && unzip v0.5.0.zip && mv ichorCNA-0.5.0/ ichorCNA/
# Override the R CMD for workflow managers
CMD ["/bin/bash"]