-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
80 lines (67 loc) · 2.43 KB
/
Dockerfile
File metadata and controls
80 lines (67 loc) · 2.43 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
# Dockerfile to build Sequencing_utilities container images
# Based on Ubuntu
# Set the base image
FROM dmccloskey/python3scientific
# switch to root for install
USER root
# File Author / Maintainer
MAINTAINER Douglas McCloskey <dmccloskey87@gmail.com>
# Install dependencies and bowtie, bowtie2, and samtools
RUN apt-get update && apt-get install -y \
unzip \
python2.7-dev \
python-numpy \
python-matplotlib \
python-pip \
bowtie \
bowtie2 \
samtools \
&& apt-get clean
# Install sequencing_utilities from github
WORKDIR /usr/local/
#RUN git clone https://github.com/dmccloskey/sequencing_utilities.git
RUN wget https://github.com/dmccloskey/sequencing_utilities/archive/master.zip \
&& unzip master.zip \
&& mv sequencing_utilities-master sequencing_utilities
WORKDIR /usr/local/sequencing_utilities/
RUN python3 setup.py install \
&& rm -rf /usr/local/sequencing_utilities \
&& rm -rf /usr/local/master.zip
# Install cufflinks from http
WORKDIR /usr/local/
RUN wget http://cole-trapnell-lab.github.io/cufflinks/assets/downloads/cufflinks-2.2.1.Linux_x86_64.tar.gz \
&& tar -zxvf cufflinks-2.2.1.Linux_x86_64.tar.gz \
&& rm -rf cufflinks-2.2.1.Linux_x86_64.tar.gz
# add cufflinks to path
ENV PATH /usr/local/cufflinks-2.2.1.Linux_x86_64:$PATH
# Install breseq from http
#WORKDIR /usr/local/
RUN wget http://github.com/barricklab/breseq/releases/download/v0.26.0/breseq-0.26.0-Linux-x86_64.tar.gz \
&& tar -zxvf breseq-0.26.0-Linux-x86_64.tar.gz \
&& rm -rf breseq-0.26.0-Linux-x86_64.tar.gz
# add breseq to path
ENV PATH /usr/local/breseq-0.26.0-Linux-x86_64/bin:$PATH
# Install htseq-count from http
WORKDIR /usr/local/
RUN wget --no-check-certificate https://pypi.python.org/packages/source/H/HTSeq/HTSeq-0.6.1p1.tar.gz
RUN tar -zxvf HTSeq-0.6.1p1.tar.gz
WORKDIR HTSeq-0.6.1p1/
RUN python2.7 setup.py install \
&& chmod +x scripts/htseq-count \
&& chmod +x scripts/htseq-qa \
&& rm -rf /usr/local/HTSeq-0.6.1p1.tar.gz
# add htseq-count to path
ENV PATH /usr/local/HTSeq-0.6.1p1/scripts:$PATH
# Return app user
RUN mkdir /home/user/Sequencing \
&& mkdir /home/user/Sequencing/fastq \
&& mkdir /home/user/Sequencing/indexes \
&& mkdir /home/user/Sequencing/output \
&& chmod -R u+rwx /home/user/Sequencing/fastq \
&& chmod -R u+rwx /home/user/Sequencing/indexes \
&& chmod -R u+rwx /home/user/Sequencing/output
VOLUME ['/home/user/Sequencing/fastq','/home/user/Sequencing/indexes']
WORKDIR $HOME
USER user
# Start at the console
CMD ["python3"]