-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
61 lines (55 loc) · 1.96 KB
/
setup.sh
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
#!/bin/bash
# Update and install dependencies
echo $"Updating and installing dependencies\n"
echo $"\n\n\n"
sudo apt-get update
sudo apt-get install -y \
build-essential \
zlib1g-dev \
libre2-dev \
cmake \
libeigen3-dev \
wget \
jq \
unzip
# Unzip the datasets used in the tutorials
echo $"Unzipping retrosynthesis data\n"
echo $"\n\n\n"
unzip X_Data/rxns_100k.zip -d X_Data/
unzip X_Data/Thesis_compounds_ESI.zip -d X_Data/
unzip X_Data/Schneider_JCIM_2016_56_2336_dataSetB.zip -d X_Data/
# Create the 'retro_rdkit_env' environment and install packages
echo $"Creating the 'retro_rdkit_env' environment and installing packages\n"
echo $"\n\n\n"
conda create --name retro_rdkit_env -y
conda run -n retro_rdkit_env conda install -c conda-forge rdkit jupyterlab numpy matplotlib pandas -y
# Create the 'retro_aizynth_env' environment and install packages
echo $"Creating the 'retro_aizynth_env' environment and installing packages\n"
echo $"\n\n\n"
conda create --name retro_aizynth_env -y
conda run -n retro_aizynth_env conda install -c conda-forge "python>=3.9,<3.11" "numpy<2.0" pip -y
conda run -n retro_aizynth_env pip install aizynthfinder[all]
echo $"Downloading public data for AizynthFinder\n"
cd 04_AiZynthFinder
mkdir -p aizynth_data
conda run -n retro_aizynth_env download_public_data aizynth_data
cd ..
# Create the 'retro-sim-env' environment and install packages
echo $"Creating the 'retro-sim-env' environment and installing packages\n"
echo $"\n\n\n"
conda create --name retro-sim-env -y
conda run -n retro-sim-env conda install -c conda-forge rdkit pip -y
conda run -n retro-sim-env pip install rdchiral
git clone https://github.com/coleygroup/rdcanon.git
cd rdcanon
conda run -n retro-sim-env pip install -e .
cd ..
# Clone and build the LillyMol project
echo $"Cloning and building the LillyMol cmake project\n"
echo $"\n\n\n"
git clone https://github.com/vfscalfani/LillyMol_6_cmake.git
cd LillyMol_6_cmake/src
mkdir build
cd build
cmake ..
make -j 4