|
1 |
| -# Set the base image to Debian |
2 |
| -FROM debian:9.0 |
| 1 | +################## BASE IMAGE ##################### |
| 2 | +FROM nfcore/base |
3 | 3 |
|
4 |
| -# File Author / Maintainer |
5 |
| -MAINTAINER **nalcala** <**alcalan@fellows.iarc.fr**> |
6 |
| - |
7 |
| -RUN mkdir -p /var/cache/apt/archives/partial && \ |
8 |
| - touch /var/cache/apt/archives/lock && \ |
9 |
| - chmod 640 /var/cache/apt/archives/lock && \ |
10 |
| - apt-get update -y &&\ |
11 |
| - apt-get install -y gnupg2 |
12 |
| - |
13 |
| -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D && \ |
14 |
| - apt-get clean && \ |
15 |
| - apt-get update -y && \ |
16 |
| - |
17 |
| - |
18 |
| - # Install dependences |
19 |
| - DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ |
20 |
| - make \ |
21 |
| - g++ \ |
22 |
| - perl \ |
23 |
| - default-jre \ |
24 |
| - zlib1g-dev \ |
25 |
| - libncurses5-dev \ |
26 |
| - libncurses5 \ |
27 |
| - git \ |
28 |
| - wget \ |
29 |
| - ca-certificates \ |
30 |
| - python-dev \ |
31 |
| - python-pip \ |
32 |
| - bzip2 \ |
33 |
| - libbz2-dev \ |
34 |
| - liblzma-dev \ |
35 |
| - libcurl4-openssl-dev \ |
36 |
| - libfreetype6-dev \ |
37 |
| - libpng-dev \ |
38 |
| - unzip \ |
39 |
| - r-base \ |
40 |
| - r-cran-ggplot2 \ |
41 |
| - r-cran-gplots \ |
42 |
| - r-cran-reshape && \ |
43 |
| - cp /usr/include/freetype2/*.h /usr/include/. && \ |
44 |
| - |
45 |
| - Rscript -e 'install.packages("gsalib",repos="http://cran.us.r-project.org")' && \ |
46 |
| - |
47 |
| - # Install samtools specific version manually |
48 |
| - wget https://github.com/samtools/samtools/releases/download/1.3.1/samtools-1.3.1.tar.bz2 && \ |
49 |
| - tar -jxf samtools-1.3.1.tar.bz2 && \ |
50 |
| - cd samtools-1.3.1 && \ |
51 |
| - make && \ |
52 |
| - make install && \ |
53 |
| - cd .. && \ |
54 |
| - rm -rf samtools-1.3.1 samtools-1.3.1.tar.bz2 && \ |
55 |
| - |
56 |
| - # Install FastQC |
57 |
| - wget http://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.5.zip && \ |
58 |
| - unzip fastqc_v0.11.5.zip && \ |
59 |
| - chmod 755 FastQC/fastqc && \ |
60 |
| - cp -r FastQC /usr/local/bin/. && \ |
61 |
| - ln -s /usr/local/bin/FastQC/fastqc /usr/local/bin/ && \ |
62 |
| - rm -rf fastqc_v0.11.5.zip FastQC && \ |
63 |
| - |
64 |
| - # Install cutadapt |
65 |
| - pip install cutadapt && \ |
66 | 4 |
|
67 |
| - # Install trim_galore |
68 |
| - wget https://github.com/FelixKrueger/TrimGalore/archive/0.4.3.tar.gz && \ |
69 |
| - tar xvzf 0.4.3.tar.gz && \ |
70 |
| - mv TrimGalore-0.4.3/trim_galore /usr/bin && \ |
71 |
| - rm -rf TrimGalore-0.4.3 0.4.3.tar.gz && \ |
| 5 | +################## METADATA ####################### |
72 | 6 |
|
73 |
| - # Install hisat2 |
| 7 | +LABEL base_image="nfcore/base" |
| 8 | +LABEL version="1.0" |
| 9 | +LABEL software="rnaseq-nf" |
| 10 | +LABEL software.version="2.1" |
| 11 | +LABEL about.summary="Container image containing all requirements for rnaseq-nf" |
| 12 | +LABEL about.home="http://github.com/IARCbioinfo/RNAseq-nf" |
| 13 | +LABEL about.documentation="http://github.com/IARCbioinfo/RNAseq-nf/README.md" |
| 14 | +LABEL about.license_file="http://github.com/IARCbioinfo/RNAseq-nf/LICENSE.txt" |
| 15 | +LABEL about.license="GNU-3.0" |
74 | 16 |
|
75 |
| - # Install htseq |
76 |
| - pip install numpy && \ |
77 |
| - pip install setuptools && \ |
78 |
| - pip install HTSeq && \ |
79 |
| - |
80 |
| - # Install multiqc |
81 |
| - pip install --upgrade --force-reinstall git+https://github.com/nalcala/MultiQC.git && \ |
82 |
| - |
83 |
| - # Install STAR specific version manually |
84 |
| - wget https://github.com/alexdobin/STAR/archive/2.5.3a.tar.gz && \ |
85 |
| - tar -xzf 2.5.3a.tar.gz && \ |
86 |
| - cp STAR-2.5.3a/bin/Linux_x86_64_static/STAR /usr/local/bin/. && \ |
87 |
| - rm -rf 2.5.3a.tar.gz STAR-2.5.3a && \ |
88 |
| - |
89 |
| - # Install hisat2 |
90 |
| - wget ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2/downloads/hisat2-2.1.0-Linux_x86_64.zip && \ |
91 |
| - unzip hisat2-2.1.0-Linux_x86_64.zip && \ |
92 |
| - cp -r hisat2-2.1.0/. /usr/local/bin/. && \ |
93 |
| - rm -rf hisat2-2.1.0-Linux_x86_64.zip hisat2-2.1.0 && \ |
94 |
| - |
95 |
| - # Install RSeQC |
96 |
| - pip install RSeQC && \ |
97 |
| - |
98 |
| - # Install samblaster specific version manually |
99 |
| - wget https://github.com/GregoryFaust/samblaster/releases/download/v.0.1.24/samblaster-v.0.1.24.tar.gz && \ |
100 |
| - tar -xzf samblaster-v.0.1.24.tar.gz && \ |
101 |
| - cd samblaster-v.0.1.24 && \ |
102 |
| - make && \ |
103 |
| - cp samblaster /usr/local/bin/. && \ |
104 |
| - cd .. && \ |
105 |
| - rm -rf samblaster-v.0.1.24.tar.gz samblaster-v.0.1.24 && \ |
106 |
| - |
107 |
| - # Install sambamba specific version manually |
108 |
| - wget https://github.com/lomereiter/sambamba/releases/download/v0.6.6/sambamba_v0.6.6_linux.tar.bz2 && \ |
109 |
| - tar -jxf sambamba_v0.6.6_linux.tar.bz2 && \ |
110 |
| - cp sambamba_v0.6.6 /usr/local/bin/sambamba && \ |
111 |
| - rm -rf sambamba_v0.6.6_linux.tar.bz2 && \ |
| 17 | +################## MAINTAINER ###################### |
| 18 | +MAINTAINER **nalcala** <**alcalan@fellows.iarc.fr**> |
112 | 19 |
|
113 |
| - # Remove unnecessary dependences |
114 |
| - DEBIAN_FRONTEND=noninteractive apt-get remove -y \ |
115 |
| - make \ |
116 |
| - g++ \ |
117 |
| - wget \ |
118 |
| - bzip2 \ |
119 |
| - git \ |
120 |
| - zlib1g-dev \ |
121 |
| - libncurses5-dev && \ |
122 | 20 |
|
123 |
| - # Clean |
124 |
| - DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \ |
125 |
| - apt-get clean |
| 21 | +#RUN mkdir -p /var/cache/apt/archives/partial && \ |
| 22 | +# touch /var/cache/apt/archives/lock && \ |
| 23 | +# chmod 640 /var/cache/apt/archives/lock && \ |
| 24 | +# apt-get update -y &&\ |
| 25 | +# apt-get install -y gnupg2 |
| 26 | +# RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D && \ |
| 27 | +# apt-get clean && \ |
| 28 | +# apt-get update -y && \ |
| 29 | + |
| 30 | +################## INSTALLATION ###################### |
| 31 | +COPY environment.yml / |
| 32 | +RUN conda env create -n rnaseq-nf -f /environment.yml && conda clean -a |
| 33 | +ENV PATH /opt/conda/envs/rnaseq-nf/bin:$PATH |
| 34 | +#RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc |
0 commit comments