forked from lima1/PureCN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
82 lines (67 loc) · 2.88 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
77
78
79
80
81
82
#FROM bioconductor/bioconductor_docker:RELEASE_3_17
FROM bioconductor/bioconductor_docker:devel
# install base packages
RUN Rscript -e 'if (!requireNamespace("BiocManager", quietly = TRUE)){install.packages("BiocManager")}; \
BiocManager::install(c("TxDb.Hsapiens.UCSC.hg38.knownGene", "TxDb.Hsapiens.UCSC.hg19.knownGene"))'
RUN Rscript -e 'install.packages(c("optparse", "R.utils")); \
BiocManager::install(c("remotes", "raerose01/deconstructSigs"));'
RUN Rscript -e 'BiocManager::install(c("GenomicRanges", "IRanges", "DNAcopy", "Biostrings", "GenomicFeatures", "rtracklayer",\
"S4Vectors", "rhdf5", "VariantAnnotation", "Rsamtools", "BiocGenerics"))'
# patched PSCBS with support of interval weights
RUN Rscript -e 'BiocManager::install("lima1/PSCBS", ref="add_dnacopy_weighting")'
RUN apt update \
&& apt install -y --no-install-recommends apt-utils python-is-python3 \
openjdk-17-jre-headless \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# tex support for building vignettes
# RUN apt update \
# && apt install -y --no-install-recommends \
# texlive \
# texlive-latex-extra \
# texlive-fonts-extra \
# texlive-bibtex-extra \
# texlive-science \
# texi2html \
# texinfo \
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/*
# install GenomicsDB
ENV GENOMICSDB_PATH=/opt/GenomicsDB
ENV GENOMICSDB_BRANCH=develop
RUN mkdir $GENOMICSDB_PATH
ENV INSTALL_PREFIX=$GENOMICSDB_PATH
ENV PREREQS_ENV=$GENOMICSDB_PATH/genomicsdb_prereqs.sh
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-arm64
ENV MAVEN_VERSION=3.9.3
RUN ls $JAVA_HOME
WORKDIR /tmp
RUN git clone --recursive --branch $GENOMICSDB_BRANCH https://github.com/GenomicsDB/GenomicsDB.git && \
cd GenomicsDB/scripts/prereqs && \
./install_prereqs.sh && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN chmod +x $PREREQS_ENV && \
$PREREQS_ENV && \
cmake -DCMAKE_INSTALL_PREFIX=$GENOMICSDB_PATH -DCMAKE_BUILD_TYPE=Release ./GenomicsDB && \
make && make install && \
rm -rf /tmp/GenomicsDB
# install GenomicsDB R bindings
RUN Rscript -e 'library(remotes);\
remotes::install_github("nalinigans/GenomicsDB-R", ref="develop", configure.args="--with-genomicsdb=/opt/GenomicsDB/")'
# install PureCN
#RUN Rscript -e 'BiocManager::install("PureCN", dependencies = TRUE)'
RUN Rscript -e 'BiocManager::install("lima1/PureCN", ref = "RELEASE_3_17", dependencies = TRUE)'
ENV PURECN=/usr/local/lib/R/site-library/PureCN/extdata
# add symbolic link and paths
ENV PATH $GENOMICSDB_PATH/bin:$PATH
WORKDIR /opt
RUN ln -s $PURECN /opt/PureCN
# install GATK4
ENV GATK_VERSION="4.4.0.0"
RUN wget --no-verbose https://github.com/broadinstitute/gatk/releases/download/${GATK_VERSION}/gatk-${GATK_VERSION}.zip && \
unzip gatk-${GATK_VERSION}.zip -d /opt && \
rm gatk-${GATK_VERSION}.zip
ENV PATH /opt/gatk-${GATK_VERSION}:$PATH
CMD ["/bin/bash"]