-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.bash
48 lines (41 loc) · 2.09 KB
/
setup.bash
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
#!/usr/bin/env bash
s1=$1
s2="install"
s3="remove"
s4="pretrained"
if [[ $s1 == $s2 ]]; then
echo "-------------------------------------------------------------------------------------------------------------"
echo "--------------------------------------------------- DATA - -------------------------------------------------"
echo "-------------------------------------------------------------------------------------------------------------"
cd data
wget --no-check-certificate -O "qm9.zip" https://www.dropbox.com/s/cfra3r50j89863x/qm9.zip?dl=0
unzip -a qm9.zip
rm qm9.zip
wget --no-check-certificate -O "zinc.zip" https://www.dropbox.com/s/rrisjasazovyouf/zinc.zip?dl=0
unzip -a zinc.zip
rm zinc.zip
echo "-------------------------------------------------------------------------------------------------------------"
echo "--------------------------------------------------- UTILS - ------------------------------------------------"
echo "-------------------------------------------------------------------------------------------------------------"
cd ../utils
wget --no-check-certificate https://raw.githubusercontent.com/rdkit/rdkit/master/Contrib/SA_Score/sascorer.py
wget --no-check-certificate https://raw.githubusercontent.com/rdkit/rdkit/master/Contrib/SA_Score/fpscores.pkl.gz
echo "------------------------------------------------------------------------------------------------------------"
echo "--------------------------------------------------- rgcvae -----------------------------------------------"
echo "------------------------------------------------------------------------------------------------------------"
conda env create -f rgcvae_env.yml
conda activate rgcvae
pip install Cython --install-option="--no-cython-compile"
pip install -r rgcvae_env_requirements.txt
conda deactivate
else
if [[ $s1 == $s3 ]]; then
conda deactivate
conda remove -n rgcvae --all
else
echo "To be implemented."
else
echo Use "install", "remove" or "pretrained"
fi
fi
fi