-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
executable file
·99 lines (73 loc) · 2.92 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
FROM r-base:4.1.0
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install pkg-config libssl-dev curl libcurl4-openssl-dev
# Install required R packages
RUN R -e "install.packages(c('BiocManager', 'optparse', 'ggplot2', 'data.table', 'splines', 'fdrtool', 'parallel', 'tools', 'plyr', 'dplyr'), quitely=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e 'BiocManager::install()'
RUN R -e "BiocManager::install('GenomicRanges');"
RUN R -e "BiocManager::install('edgeR');"
# Install python 3
RUN apt-get -y install python3
RUN apt-get -y install python3-pip
RUN apt install python3-networkx
RUN apt install python3-numpy
RUN apt-get -y install python3-hic-straw
RUN apt -y install python3-cooler
# before installing bedtools, create alias
RUN alias python=python3
# Install Bedtools
RUN wget https://github.com/arq5x/bedtools2/releases/download/v2.31.0/bedtools-2.31.0.tar.gz
RUN tar -zxvf bedtools-2.31.0.tar.gz
RUN cd bedtools2 && make && cp -r ./bin/* /usr/local/bin/
# Install Samtools and Htslib
RUN cd / && wget https://github.com/samtools/samtools/releases/download/1.16.1/samtools-1.16.1.tar.bz2 && wget https://github.com/samtools/htslib/releases/download/1.16/htslib-1.16.tar.bz2
RUN tar -xjf /samtools-1.16.1.tar.bz2
RUN tar -xjf /htslib-1.16.tar.bz2
RUN cd /htslib-1.16 && ./configure --prefix=/usr/local/ && make && make install
RUN cd /samtools-1.16.1 && ./configure --prefix=/usr/local/ && make && make install
# Install miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh
RUN sh Miniconda2-latest-Linux-x86_64.sh -b -f
ENV PATH="/root/miniconda2/bin/:${PATH}"
# Add bioconda
RUN conda config --add channels defaults
RUN conda config --add channels bioconda
RUN conda config --add channels conda-forge
# Install bowtie2
RUN conda install bowtie2
# Install hic-straw
#RUN conda install -c jrhawley hic-straw
# Install HiCPro dependencies
RUN apt install python3-pysam
RUN apt install bx-python
RUN apt install python3-numpy
RUN apt install python3-scipy
RUN conda install -y -c anaconda scipy
RUN conda install -y -c anaconda numpy
RUN conda install -y -c bcbio bx-python
RUN conda install -y -c bioconda pysam
RUN R -e "install.packages(c('RColorBrewer'), quitely=TRUE, repos='http://cran.rstudio.com/')"
# Install HiCPro
RUN cd / && wget https://github.com/nservant/HiC-Pro/archive/refs/tags/v3.1.0.tar.gz
RUN tar -zxvf v3.1.0.tar.gz
RUN cd HiC-Pro-3.1.0/ && make configure && make install
ENV PATH="/HiC-Pro-3.1.0/bin/:${PATH}"
ENV PATH="/HiC-Pro-3.1.0/bin/utils/:${PATH}"
# Install Macs2
RUN apt install python3-MACS2
# Get FitHiChIP
# RUN apt-get -y install git
# RUN cd / && git clone https://github.com/ay-lab/FitHiChIP
# RUN cd /FitHiChIP
# RUN pip install networkx
# Cleanup
RUN rm -rf /*tar*
RUN rm -rf /bedtools2/
RUN rm -rf /htslib-1.16/
RUN rm -rf /samtools-1.16.1/
RUN chmod -R 777 /root
RUN conda install -y iced
RUN conda clean --all -y
RUN apt -y install bc
ENTRYPOINT /bin/bash