-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
160 lines (137 loc) · 4.91 KB
/
Copy pathDockerfile
File metadata and controls
160 lines (137 loc) · 4.91 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#Download base image ubuntu 18.04
FROM ubuntu:18.04
MAINTAINER Yadi Shahryary <shahryary@gmail.com>
LABEL version="1.5"
LABEL description="MethylStar Dockerfile."
#---------------------------------------------
# Update Ubuntu Software repository
#---------------------------------------------
RUN apt-get update && apt-get install -y build-essential \
openjdk-11-jdk \
openjdk-11-jre \
curl \
unzip \
bowtie2 \
gnupg2 \
software-properties-common \
aptitude \
libxml2-dev \
libgit2-dev \
libssl-dev \
git \
python \
python-pip \
libncurses-dev \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
parallel \
wget \
vim \
tmux \
screen \
htop \
bedtools && apt-get -y autoremove
RUN apt-get update
RUN apt-get install -y libcurl4-openssl-dev
RUN apt-get install -y libcurl4-gnutls-dev
#---------------------------------------------
# preparing directories
RUN mkdir -p /home/software
WORKDIR /home/software
#---------------------------------------------
# SAM tools V.19
#---------------------------------------------
RUN wget https://github.com/samtools/samtools/releases/download/1.9/samtools-1.9.tar.bz2
RUN tar -xvf samtools-1.9.tar.bz2
WORKDIR samtools-1.9/
RUN mkdir -p /home/software/samtools
RUN ./configure --prefix=/home/software/samtools
RUN make
RUN make install
ENV PATH="/home/software/samtools/bin:${PATH}"
WORKDIR /home/software/
#---------------------------------------------
# BCF TOOLS V.19
#---------------------------------------------
RUN wget https://github.com/samtools/bcftools/releases/download/1.9/bcftools-1.9.tar.bz2
RUN tar -xvf bcftools-1.9.tar.bz2
WORKDIR bcftools-1.9/
RUN mkdir -p /home/software/bcftools
RUN ./configure --prefix=/home/software/bcftools
RUN make
RUN make install
ENV PATH "$PATH:/home/software/bcftools/bin"
WORKDIR /home/software/
#---------------------------------------------
# HTSLIB V.19
#---------------------------------------------
RUN wget https://github.com/samtools/htslib/releases/download/1.9/htslib-1.9.tar.bz2
RUN tar -xvf htslib-1.9.tar.bz2
WORKDIR htslib-1.9/
RUN mkdir -p /home/software/htslib
RUN ./configure --prefix=/home/software/htslib
RUN make
RUN make install
ENV PATH "$PATH:/home/software/htslib/bin"
WORKDIR /home/software/
#--------------------------------
# Trimmomatic 0.38
#--------------------------------
RUN wget http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/Trimmomatic-0.38.zip
RUN unzip Trimmomatic-0.38.zip
RUN chmod +x -R Trimmomatic-0.38/
WORKDIR /home/software/
#--------------------------------
# Bismark V 0.20.1
#--------------------------------
RUN wget https://github.com/FelixKrueger/Bismark/archive/0.20.1.zip
RUN unzip 0.20.1.zip
RUN chmod +x -R Bismark-0.20.1/
#--------------------------------
# FASTQC V.0.11.8
#--------------------------------
RUN wget https://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.8.zip
RUN unzip fastqc_v0.11.8.zip
RUN chmod +x -R FastQC
#--------------------------------
RUN rm *.bz2 && rm *.zip
#--------------------------------
# R and libraries V.0.11.8
#--------------------------------
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
RUN add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
RUN apt-get -y install r-base
RUN R -e "install.packages('BiocManager', version = '3.9')"
RUN R -e "library("BiocManager"); BiocManager::install('data.table')"
RUN R -e "library("BiocManager"); BiocManager::install('devtools')"
RUN R -e "library("BiocManager"); BiocManager::install('dplyr')"
RUN R -e "library("BiocManager"); BiocManager::install('ggplot2')"
RUN R -e "library("BiocManager"); BiocManager::install('doParallel')"
RUN R -e "library("BiocManager"); BiocManager::install('stringr')"
RUN R -e "library("BiocManager"); BiocManager::install('DMRcaller')"
RUN R -e "library("BiocManager"); BiocManager::install('GenomicRanges')"
RUN R -e "library("BiocManager"); BiocManager::install('annotatr')"
RUN R -e "library("BiocManager"); BiocManager::install('GenomicRanges')"
RUN R -e "library("BiocManager"); BiocManager::install('Rhtslib')"
RUN R -e "library("BiocManager"); BiocManager::install('methylKit')"
RUN R -e "library("devtools"); install_github('ataudt/methimpute')"
#--------------------------------
# Pipeline and preparing directories
#--------------------------------
WORKDIR /home/
RUN git clone https://github.com/jlab-code/MethylStar.git
WORKDIR /home/MethylStar/
RUN rm config/pipeline.conf
RUN mv config/pipeline.conf.Docker config/pipeline.conf
RUN mkdir -p /home/shared/reference_genome
RUN chown -R root:root /home/shared/reference_genome
RUN chmod ugo+rxw -R /home/shared/reference_genome
#RUN wget http://10.162.143.56/refgenome/TAIR10_chr_all.fa
RUN wget http://jlabdata.org/refgenome/TAIR10_chr_all.fa
RUN chmod +x TAIR10_chr_all.fa
RUN mv TAIR10_chr_all.fa /home/shared/reference_genome
RUN mkdir -p /data
RUN chmod 777 -R /data