forked from shenzheyuan2020/EvaluationMaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstall
135 lines (114 loc) · 3.98 KB
/
Install
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#!/bin/bash
# 确保Conda已初始化
if ! command -v conda &> /dev/null
then
echo "Conda not found. Please install Anaconda or Miniconda first."
exit
fi
# 初始化conda环境
eval "$(conda shell.bash hook)" # 初始化conda shell命令
# 定义安装目录
INSTALL_DIR=$(pwd)
# 创建conda虚拟环境并激活
echo "Creating conda environment 'VM' with Python 3.9"
conda create -n VM python=3.9 -y
conda activate VM
# 安装PyQt和其他依赖项
echo "Installing dependencies..."
conda install pyqt -y
wget https://files.pythonhosted.org/packages/b6/06/291866f91c573cc637bedbdd008e6a8ca506b589e61de1540ca265cfe7bd/PyQt_Fluent_Widgets-1.6.5-py3-none-any.whl
pip install PyQt_Fluent_Widgets-1.6.5-py3-none-any.whl
pip install qdarkstyle
conda install numpy -c conda-forge -y
conda install vina -c conda-forge -y
conda install rdkit -c conda-forge -y
conda install chembl_webresource_client matplotlib -c conda-forge -y
conda install pyarrow -c conda-forge -y
conda install openpyxl -c conda-forge -y
conda install scipy -c conda-forge -y
conda install scikit-learn==1.3.2 -c conda-forge -y
conda install openbabel -c conda-forge -y
conda install pandas -c conda-forge -y
conda install prody -c conda-forge -y
conda install wandb -c conda-forge -y
conda install scikit-image -c conda-forge -y
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia -y
pip install molgrid
pip install tqdm
pip install seaborn
sudo apt install autogrid
conda install -c conda-forge pymol-open-source -y
# 创建Support_software目录并进入
echo "Creating Support_software directory..."
mkdir -p Support_software
cd Support_software
# MGLTools安装
echo "Installing MGLTools..."
mkdir -p mgltools
cd mgltools
wget https://ccsb.scripps.edu/mgltools/download/491/ -O mgltools_x86_64Linux2_1.5.7p1.tar.gz
tar -zxvf mgltools_x86_64Linux2_1.5.7p1.tar.gz
cd mgltools_x86_64Linux2_1.5.7
bash install.sh
cd ..
cd ..
# LeDock安装
echo "Installing LeDock..."
mkdir -p Ledock
cd Ledock
wget http://www.lephar.com/download/ledock_linux_x86
wget https://www.lephar.com/download/dok2mol2.cpp
g++ -std=c++11 dok2mol2.cpp -o dok2mol2
mv ledock_linux_x86 ledock
chmod 777 ledock
cd ..
# KarmaDock安装
echo "Installing KarmaDock..."
git clone https://github.com/schrojunzhang/KarmaDock
cd KarmaDock
mkdir -p Env
cd Env
wget https://zenodo.org/record/7788732/files/karmadock_env.tar.gz?download=1 -O karmadock_env.tar.gz
tar -zxvf karmadock_env.tar.gz
cd ../..
# AutoDock-GPU安装
echo "Installing AutoDock-GPU..."
git clone https://github.com/ccsb-scripps/AutoDock-GPU
cd AutoDock-GPU
export GPU_INCLUDE_PATH=/usr/local/cuda/include
export GPU_LIBRARY_PATH=/usr/local/cuda/lib64
make DEVICE=OCLGPU NUMWI=64
cd ..
# Deeppocket安装
echo "Installing Deeppocket..."
git clone https://github.com/Discngine/fpocket.git
cd fpocket
make
sudo make install
cd ..
git clone https://github.com/devalab/DeepPocket.git
cd DeepPocket
wget https://zenodo.org/records/13833813/files/first_model_fold1_best_test_auc_85001.pth.tar
wget https://zenodo.org/records/13833813/files/seg0_best_test_IOU_91.pth.tar
cd ..
# DeepCoy安装
echo "Installing DeepCoy..."
git clone https://github.com/fimrie/DeepCoy.git
cd DeepCoy
wget https://zenodo.org/records/13831241/files/Deep_Coy_env.tar.gz
tar -zxvf Deep_Coy_env.tar.gz
cd ..
# 下载DeepCoy预训练模型
echo "Downloading DeepCoy pretrained models..."
wget https://opig.stats.ox.ac.uk/data/downloads/DeepCoy_pretrained_models.tar.gz
tar -zxvf DeepCoy_pretrained_models.tar.gz
cd ..
# 将安装路径添加到.bashrc,并设置环境变量EVALUATIONMASTER
echo "Adding installation path to .bashrc and setting EVALUATIONMASTER..."
echo "export EVALUATIONMASTER=$INSTALL_DIR" >> ~/.bashrc
# 更新当前终端会话中的环境变量
export EVALUATIONMASTER=$INSTALL_DIR
# 使.bashrc立即生效
source ~/.bashrc
echo "Installation completed! EVALUATIONMASTER is set to $EVALUATIONMASTER"
cp $EVALUATIONMASTER/Substitude/KarmaDock/dataset/graph_obj.py $EVALUATIONMASTER/Support_software/KarmaDock/dataset/graph_obj.py