-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
74 lines (59 loc) · 2.27 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
# run as (with code in folder):
# docker build -t hmt-index .
# base everything on a recent Ubuntu
FROM debian:latest
# get system packages up to date
RUN apt-get update && apt-get -y upgrade
# I have no idea why this is needed. a C compiler seems basic.
RUN apt-get -y install build-essential
# good old wget
RUN apt-get -y install wget
# making .genome files needs this
RUN wget -P /bin/ http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/fetchChromSizes
# digging out the promoter needs this
RUN apt-get install bedtools
# FIMO lives in here, as does the background generator
# zlib is needed for MEME
RUN apt-get install -y zlibc zlib1g zlib1g-dev
# Sam lied, there is no python. there is no future.
RUN apt-get -y install python
# some perl stuff is needed as well
RUN apt-get install libexpat1-dev && \
apt-get -y install libxml2-dev
RUN cpan HTML::PullParser && \
cpan HTML::Template && \
cpan XML::Simple && \
cpan XML::Parser::Expat && \
cpan Devel::CheckLib
# apparently this magically fixes all of the things
RUN apt-get -y install libxml-libxml-perl
# back to simple shit hopefully
RUN cpan XML::Compile && \
cpan XML::Compile::Cache && \
cpan XML::Compile::SOAP11 && \
cpan XML::Compile::WSDL11 && \
cpan XML::Compile::Transport::SOAPHTTP && \
cpan Log::Log4perl && \
cpan Math::CDF
# finally meme proper
RUN wget http://meme-suite.org/meme-software/4.10.2/meme_4.10.2.tar.gz
RUN tar zxf meme_4.10.2.tar.gz && cd meme_4.10.2 && \
./configure --prefix=$HOME/meme --with-url=http://meme-suite.org --enable-build-libxml2 --enable-build-libxslt && \
make && make test && make install
#the fetchChromSizes thing is useless. samtools is go
RUN apt-get -y install samtools
#need ImageMagick for PNG conversion
RUN apt-get -y install imagemagick
# okay. so, now we can do code things. like set up python3
RUN apt-get -y install python3 python3-dev python3-setuptools \
python3-numpy python3-scipy
# need a new version of pandas for comment='#' functionality
RUN easy_install3 pip && pip install pandas
# glue over the code
RUN mkdir /scripts
COPY scripts /scripts/
#set up analysis crash text file
RUN apt-get -y install git
RUN git clone https://github.com/cyversewarwick/analysis_crash.git
# ...I think that's it for now?
ENTRYPOINT ["bash", "/scripts/hmt_index_tarwrapper.sh"]