-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (31 loc) · 1.29 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
# Set the base image to debian based miniconda2
FROM conda/miniconda3
# File Author / Maintainer
MAINTAINER Paweł Biernat <pawel.biernat@gmail.com>
# necessary for multiqc
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
# the data-dumper is required by the gtf2bed script, which in turn is
# required by the rseqc (apparently rseqc does not work with bed files
# generated with standard tools like BEDOPS).
RUN apt-get update &&\
apt-get install -y --no-install-recommends libdata-dumper-simple-perl \
lolcat figlet cowsay &&\
apt-get clean
# copy and install all the environment
COPY environments /environments
RUN conda env create -f /environments/hisat2.yml
# rseqc is in conflict with multiqc so it get's its own environment
RUN conda env create -f /environments/rseqc.yml
# a work around to activate the environment
RUN echo "source activate hisat2" > ~/.bashrc
ENV PATH /usr/local/envs/hisat2/bin:$PATH
# the newest version on conda is 0.9.1 but it has some kind of bug
# that prevented me from using it on my test files. The pip version
# works fine though.
RUN pip install htseq==0.11.0
COPY config /config
COPY scripts /scripts
# the snakemake command to run the pipeline
ENTRYPOINT ["snakemake", "--directory", "/output", "--snakefile", "/scripts/Snakefile", "-p", "--jobs", "32"]
CMD ["all"]