-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
83 lines (65 loc) · 2.24 KB
/
install.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env bash
#> Copyright (c) 2020
#> Heidelberg Institute of Theoretical Studies (HITS, www.h-its.org)
#> Schloss-Wolfsbrunnenweg 35
#> 69118 Heidelberg, Germany
#
#> Please send your contact address to get information on updates and
#> new features to "[email protected]". Questions will be
#> answered as soon as possible.
#> References:
#> A rapid identification of hit molecules for target proteins via physico-chemical descriptors.
#> (2013) Phys. Chem. Chem. Phys., 15, 9107-9116.
#> Authors: Goutam Mukherjee and B. Jayaram
#> Version 1.0 (April 2013)
#> RASPD+: Fast protein-ligand binding free energy prediction using simplified physicochemical features
#> Authors: Stefan Holderbach, Lukas Adam, B. Jayaram, Rebecca C. Wade, Goutam Mukherjee
#> Version 1.0 (June 2020)
#> ChemRxiv preprint (https://doi.org/10.26434/chemrxiv.12636704.v1), 2020
# Run this script once to compile and install the dependencies for RASPD+ from this directory
if [ ! -e raspdml.yml ]
then
echo "Please cd to the root of the RASPD+ repository for this installation"
exit 1
fi
if [ -z "$raspd_root" ]
then
source config/init.sh
fi
if [ -z "$raspd_root" ]
then
echo "Please set raspd_root to the root of your RASPD+ installation"
echo " export raspd_root=<where RASPD+ is installed>"
exit 1
fi
if [ -z "$conda_root" ]
then
echo "Please set conda_root to the root of your conda installation"
echo " export conda_root=<where conda is installed (..../miniconda)>"
exit 1
fi
if [ -z "$TRAPP" ]
then
echo "Please set TRAPP to the root of your TRAPP installation (version >=4.0.1)"
echo " export TRAPP=<where TRAPP is installed>"
exit 1
fi
if [ ! -f $TRAPP/scripts/smallset_genX.py ]; then
echo "Please update TRAPP to version 4.0.1 or greater"
echo "Aborting installation!"
exit 1
fi
eval "$($conda_root/condabin/conda shell.bash hook)"
conda env create -f $raspd_root/raspdml.yml
conda env create -f $raspd_root/trappenv.yml
mkdir -p $raspd_root/bin
cd $raspd_root/src
make
cd $raspd_root
if [ ! -f weights/scalers.pkl ]; then
echo "Downloading model weights!"
wget 'https://zenodo.org/record/3937426/files/weights.tar.gz'
tar -xzf weights.tar.gz
else
echo "Existing model weights found at $raspd_root/weights. Skipping download"
fi