-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathDockerfile
68 lines (66 loc) · 2 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
FROM debian:bullseye
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
cmake \
curl \
cython3 \
g++ \
gfortran \
git \
libblas-dev \
libgsl-dev \
liblapack-dev \
make \
python-is-python3 \
python3-dev \
r-base \
r-cran-doparallel \
r-cran-dosnow \
r-cran-foreach \
r-cran-getopt \
r-cran-ggplot2 \
r-cran-iterators \
r-cran-mixtools \
r-cran-nloptr \
r-cran-rcpp \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* \
# Use a build dir to be removed after artifacts are extracted
&& mkdir /rmats_build \
&& cd /rmats_build \
&& git clone https://github.com/Xinglab/rmats-turbo.git \
&& cd rmats-turbo \
# && git checkout {commit} \
# The build will source setup_environment.sh which will source ~/.bashrc.
# Skip that by truncating setup_environment.sh
&& echo '' > setup_environment.sh \
&& ./build_rmats \
# Copy the build results
&& mkdir /rmats \
&& cd /rmats \
&& cp /rmats_build/rmats-turbo/rmats.py ./ \
&& cp /rmats_build/rmats-turbo/cp_with_prefix.py ./ \
&& cp /rmats_build/rmats-turbo/*.so ./ \
&& mkdir rMATS_C \
&& cp /rmats_build/rmats-turbo/rMATS_C/rMATSexe ./rMATS_C \
&& mkdir rMATS_P \
&& cp /rmats_build/rmats-turbo/rMATS_P/*.py ./rMATS_P \
&& mkdir rMATS_R \
&& cp /rmats_build/rmats-turbo/rMATS_R/*.R ./rMATS_R \
# Remove build dir
&& rm -rf /rmats_build \
# Build STAR
&& mkdir /star_build \
&& cd /star_build \
&& curl -L -O https://github.com/alexdobin/STAR/archive/refs/tags/2.7.9a.tar.gz \
&& tar -xvf 2.7.9a.tar.gz \
&& cd STAR-2.7.9a/source \
&& make STAR \
&& cp STAR /usr/local/bin
# Set defaults for running the image.
# The ENTRYPOINT AND CMD are empty to be compatible with
# CWL and WDL implementations that cannot override those values
WORKDIR /rmats
ENTRYPOINT []
CMD []