-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscramble.def
More file actions
80 lines (68 loc) · 2.16 KB
/
scramble.def
File metadata and controls
80 lines (68 loc) · 2.16 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
Bootstrap: docker
From: ubuntu:20.04
%post
export TZ='Europe/Amsterdam'
export DEBIAN_FRONTEND=noninteractive
apt-get clean all && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
autoconf \
autogen \
build-essential \
curl \
libbz2-dev \
libcurl4-openssl-dev \
libhts3 \
libhts-dev \
liblzma-dev \
libncurses5-dev \
libnss-sss \
libssl-dev \
libxml2-dev \
ncbi-blast+ \
zlib1g-dev \
git
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Installing R 4.3
sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list
apt -y update
apt -y build-dep r-base
export R_VERSION=4.3.1
curl -O https://cran.rstudio.com/src/base/R-4/R-${R_VERSION}.tar.gz
tar -xzvf R-${R_VERSION}.tar.gz
cd R-${R_VERSION}
./configure \
--prefix=/opt/R/${R_VERSION} \
--enable-R-shlib \
--enable-memory-profiling \
--with-blas\
--with-lapack
make
make install
ln -s /opt/R/${R_VERSION}/bin/R /usr/local/bin/R
ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/local/bin/Rscript
cd ..
# Set CRAN mirror in Rprofile
echo "r <- getOption('repos'); r['CRAN'] <- 'http://cran.us.r-project.org'; options(repos = r);" > /root/.Rprofile
# Install BiocManager
R --slave -e 'if(!require("BiocManager", quietly=TRUE)) install.packages("BiocManager")'
R --slave -e 'install.packages(c("optparse", "stringr", "devtools"))'
R --slave -e 'devtools::install_github("mhahsler/rBLAST")'
# Install rBLAST from BCmanager
R --slave -e 'BiocManager::install(c("Biostrings", "Rsamtools"))'
# install scramble
cd app
git clone https://github.com/GeneDx/scramble.git
cd scramble
cd cluster_identifier/src
make
ln -s /app/scramble/cluster_identifier/src/build/cluster_identifier /usr/local/bin/cluster_identifier
%environment
export PATH=/usr/local/bin:$PATH
%files
. /app
. /mnt/source
%labels
Author Tim Niemeijer