-
Notifications
You must be signed in to change notification settings - Fork 0
/
Thesis_PCA_vs_AE.def
58 lines (51 loc) · 2.34 KB
/
Thesis_PCA_vs_AE.def
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
Bootstrap: docker
From: ubuntu:latest
%post
#Set time zone and set apt-get to non-interactive
export TZ=Europe DEBIAN_FRONTEND=noninteractive
#Set work directory
cd /root
#Install required libraries
apt-get update -qq && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
build-essential \
dirmngr \
gnupg \
libcurl4-openssl-dev \
libgpgme11-dev \
libnetcdf-dev \
libseccomp-dev \
libssl-dev \
libxml2-dev \
nano \
pkg-config \
software-properties-common \
squashfs-tools \
uuid-dev \
vim \
wget \
tree \
graphviz
#Install R 4.1
apt-get install -y r-base r-base-dev
# Install R packages
R -e "install.packages(c('remotes', 'BiocManager'), repos='http://cran.rstudio.com/')" && \
R -e "BiocManager::install(c('clusterProfiler', 'org.Hs.eg.db', 'AnnotationDbi', 'graphite', 'DOSE', 'enrichplot', 'ReactomePA', 'STRINGdb', 'BioNAR', 'GEOquery', 'DESeq2', 'edgeR', 'biomaRt'))" && \
R -e "remotes::install_version('ggplot2', version = '3.5.1', repos = 'http://cran.us.r-project.org')" && \
R -e "remotes::install_version('igraph', version = '2.0.3', repos = 'http://cran.us.r-project.org')" && \
R -e "remotes::install_version('randomcoloR', version = '1.1.0.1', repos = 'http://cran.us.r-project.org')" && \
R -e "remotes::install_version('dplyr', version = '1.1.4', repos = 'http://cran.us.r-project.org')" && \
R -e "remotes::install_version('tidyr', version = '1.3.1', repos = 'http://cran.us.r-project.org')" && \
R -e "remotes::install_version('openxlsx', version = '4.2.5.2', repos = 'http://cran.us.r-project.org')" && \
R -e "remotes::install_version('VennDiagram', version = '1.7.3', repos = 'http://cran.us.r-project.org')"
# Install Python 3.8 and pip
add-apt-repository ppa:deadsnakes/ppa && \
apt-get install -y python3.8 python3.8-venv
# Create a virtual environment and install Python packages
python3.8 -m venv /opt/venv && \
/opt/venv/bin/pip install --upgrade pip && \
/opt/venv/bin/pip install pandas numpy matplotlib scikit-learn tensorflow scipy seaborn
# Set PATH to use the virtual environment
export PATH="/opt/venv/bin:$PATH"