Cheminformatics | Torsion Tree & Docking Protocol
日期:2023-07-31
共享协议:本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。
🏃🏻 快速开始
您可以直接在 Bohrium Notebook 上执行此文档。首先,请点击位于界面顶部的 开始连接 按钮,然后选择 drug-design:2023_08_01_2镜像,如docking_engine使用Uni-Dock則需使用GPU節點。
📖 作者
林泓叡 📨
📖 備註
本 Notebook 將持續優化,當中部分代碼尚未開源,將來開源後調用方式會稍有不同,但保持大致框架。另外功能部分也將持續提升,部份內部接口也將做調整。
Goals
本Notebook主要介紹分子對接中Torsion tree的一種算法實現,以及針對應用場景的前後處理算法與流程,最後完善為一整套整合的docking pipeline
Torsion Tree Introduction
在CADD領域中,分子對接是一項廣泛被使用的用來確定分子與靶點結合構像(binding pose)的方法。除去商業軟件不談,在眾多開源的docking軟件中,AutoDock系列工具屬於被使用最多。Scripps為AutoDock系列軟件定義了一種小分子構像採樣專用的topology的描述形式,稱為torsion tree,在AutoDock4, ADFR, AutoDock-GPU, Vina等系列工具中都被使用,以及後來的gnina, watvina, Uni-Dock都沿用了這樣一種小分子topology的表達形式。
一個小分子torsion tree的範例如下圖所示:
在docking採樣的算法中,我們關心的是小分子的平移、轉動,與各個可旋轉的二面角。因此torsion tree的設定中,便以此種方式,將小分子根據可旋轉鍵切分成若干個fragments,並根據小分子整體的平移,旋轉,與二面角的採樣來決定小分子的整體構型。上圖左是一個範例的小分子,右圖是他對應的torsion tree結構,可以看出,這個分子根據可旋轉鍵,被切分成了10個fragments,並且在我們的算法中,將最大的一個fragment稱為root,root是整個torsion tree的起點,往下根據可旋轉鍵連接,建立了各個分支,遍歷每個fragments直到構建完整個torsion tree。 而在constraint docking與covalent docking的場景中,root具有特殊的意義,根據規定,root fragment應該是被固定不動的部分,並且不參與對接流程的採樣。
建立於torsion tree之上,docking的採樣算法思路即是考慮了分子的平移、旋轉、各個可旋轉鍵等自由度,根據打分函數的指引對這些自由度進行採樣,由全局搜索加上一個局部結構優化所組成,(不同軟件具體算法會有所不同),如下圖所示:
(取自ADFR文獻: https://doi.org/10.1371/journal.pcbi.1004586)
長久以來,有許多開源的小分子docking inputs準備工具,可以用來生成torsion tree (PDBQT文件),例如scripps自己開發的MGLTools, openbabel, meeko等,但這些公開的算法都牽涉到很大一部份猜鍵級的過程,一般這些算法根據小分子3D結構的座標以及構型輔以一些規則,來判斷鍵級。而這過程是很容易出錯的,對於較為複雜的官能團,這樣的判斷往往容易與真實的鍵級有出入。因此本notebook介紹一種完全依賴來自小分子sdf文件紀錄的鍵級信息(透過rdkit與networkx實現)來完成torsion tree,也就是PDBQT與unidock-style sdf的輸出的算法實現。
Torsion Tree Algorithm
Imports
首先定義AutoDock torsion tree裡需要使用的小分子atom types(根據不同軟件的打分函數而有所不同),以及rotatable bonds匹配規則。我們這裡根據非常簡單的SMARTS規則來定義,(便於擴展至複雜官能團),而不是10多年前傳統的手動羅列各種官能團建立字典的形式:
Atom Types
Rotatable Bonds
旋轉鍵部份,SMARTS pattern採用Lipinski規則:
其中也保留了後續對於共軛,與大環採樣實現的參數。
而每個已定義的atom types打分函數則來自於各自軟件的規範,例如AutoDock4會將力場的參數值寫進 AD4.1_bound.dat
文件中:
Cell In[4], line 46 FE_coeff_vdW 0.1662 ^ SyntaxError: invalid syntax
而vina系列則將打分函數直接寫進了內部程序,執行對接前自動計算docking grids的值。
Atom Info
這裡我們為了能夠在torsion tree上建立每個原子的所需信息,在這裡先設定每個atom的property,以及針對covalent docking與template docking的特殊處理:
general cases
covalent docking treatment
此部份有非常多非常規的rdkit操作,主要是用於構建covalent ligand,並盡可能在各種情況下保證算法的安全性。
算法包含構建不包含共價彈頭的sub mol(比rdkit自帶的操作更加安全的作法),以及設定covalent ligand的原子信息與座標。
template docking treatment
core constraint docking部份,操作主要包含: 尋找參考分子與query小分子的最大公有子結構 (MCS),將query小分子構像根據core atom mapping,align之後進行簡單的經驗力場優化。
介紹完了前置準備,接下來可以進入torsion tree的構建算法,這裡採用networkx的圖結構實現:
請注意,以下代碼僅僅展示一個實現範例,無法運行,具體調用請見下文。
完成了基於nx graph的torsion tree搭建之後,我們便可以著手來進行PDBQT格式的輸出。PDBQT格式是一種基於torsion tree,將每個fragments透過深度優先的搜索方式遍歷列出的一種定義,並且在此之外,每個原子紀錄的欄位還包含了對應的charge(Q)與atom type(T)等信息。 具體實現如下:
首先定義一個DFS的遞歸算法:
其次是PDBQT格式輸出:
以及unidock-style的sdf與constriant bpf文件輸出(這裡就只需要依賴torsion tree而不需要進行深度遍歷):
以上算法來自XDATools裡的autodock_topology模塊
一個AutoDock Torsion Tree Builder具體的操作方式如下,在此以constraint docking的準備為例:
ligand_sdf_file_name (str): 對接小分子的sdf文件路徑
covalent_ligand (bool): 是否為共價對接模式,進行共價分子的相關處理
template_docking (bool): 是否為限制對接模式,進行限制對接的前處理
reference_sdf_file_name (str): 共價對接場景時,需要指定對應的參考分子(或者core本身)的sdf文件路徑
working_dir_name (str): 工作文件夾路徑,輸出的文件將在此目錄底下
{'atom_info_list': [{'sdf_atom_idx': 1, 'atom_name': 'C1', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 11.719913055962122, 'y': -2.2815467420095246, 'z': 1.2427213030734408, 'charge': 0.06388173328332081, 'atom_type': 'C'}, {'sdf_atom_idx': 2, 'atom_name': 'N2', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 13.039249084430867, 'y': -2.604754947486575, 'z': 0.7187088391966407, 'charge': -0.2005718813405433, 'atom_type': 'N'}, {'sdf_atom_idx': 3, 'atom_name': 'C3', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 14.20655479727682, 'y': -2.600233318784138, 'z': 1.3698299001257184, 'charge': 0.35138512187908655, 'atom_type': 'C'}, {'sdf_atom_idx': 4, 'atom_name': 'N4', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 14.387848666811841, 'y': -2.3242533174310487, 'z': 2.660938898880836, 'charge': -0.2903100455230596, 'atom_type': 'N'}, {'sdf_atom_idx': 5, 'atom_name': 'N5', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 15.252166972622096, 'y': -2.8978135205767206, 'z': 0.559732952250487, 'charge': -0.25765941719993657, 'atom_type': 'N'}, {'sdf_atom_idx': 6, 'atom_name': 'C6', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 14.789205160191587, 'y': -3.205779802643188, 'z': -0.824351179940522, 'charge': 0.2011784616353723, 'atom_type': 'C'}, {'sdf_atom_idx': 21, 'atom_name': 'C21', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 13.25398440989743, 'y': -2.959727738853404, 'z': -0.6554318586945895, 'charge': 0.3290140642479543, 'atom_type': 'C'}, {'sdf_atom_idx': 22, 'atom_name': 'O22', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 12.382982527915257, 'y': -3.029754709991024, 'z': -1.5000039153558906, 'charge': -0.25127301662821194, 'atom_type': 'OA'}, {'sdf_atom_idx': 23, 'atom_name': 'H23', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 11.528434924137375, 'y': -1.2156514623642218, 'z': 1.0949600557942856, 'charge': 0.06341809804586859, 'atom_type': 'H'}, {'sdf_atom_idx': 24, 'atom_name': 'H24', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 10.942831600844023, 'y': -2.858284709474195, 'z': 0.7334266985609983, 'charge': 0.06341809804586859, 'atom_type': 'H'}, {'sdf_atom_idx': 25, 'atom_name': 'H25', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 11.666536485970337, 'y': -2.511964877099178, 'z': 2.310545602979936, 'charge': 0.06341809804586859, 'atom_type': 'H'}, {'sdf_atom_idx': 26, 'atom_name': 'H26', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 15.31418577577549, 'y': -2.3496454216387153, 'z': 3.071004645599471, 'charge': 0.25629660199432974, 'atom_type': 'HD'}, {'sdf_atom_idx': 38, 'atom_name': 'H38', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 13.624643136458346, 'y': -2.064145272316698, 'z': 3.276411784347618, 'charge': 0.25629660199432974, 'atom_type': 'HD'}, {'sdf_atom_idx': 39, 'atom_name': 'H39', 'residue_name': 'MOL', 'chain_idx': 'A', 'residue_idx': 1, 'x': 16.214627641316802, 'y': -2.882153343686885, 'z': 0.8585917895196787, 'charge': 0.2612133963316691, 'atom_type': 'HD'}]}
{'begin_node_idx': 0, 'end_node_idx': 1, 'begin_sdf_atom_idx': 6, 'end_sdf_atom_idx': 7, 'begin_atom_name': 'C6', 'end_atom_name': 'C7'}
Docking Protocol
此部分為正式的Demo案例,演示了如何將上述的torsion tree準備融合進docking的工作流程中。 在一個易用的docking protocol中,應該包含至少四個模塊:
- 蛋白文件準備: 包含可能的格式標準化(這裡不演示),以及蛋白PDBQT的輸入文件準備
- 小分子torsion tree輸入文件準備(PDBQT or Uni-Dock style sdf文件)
- Docking Engine: 具體即是調用各種可能的docking軟件進行計算,例如AD-GPU, Vina, Uni-Dock, watvina等等
- Docking pose parsing: 不同軟件的輸出格式不同,需要針對個別軟件去實現對應的parser,並整理成統一的固定的輸出格式,並產生彙總的表格。
將以下各功能實現完畢,並整合進一個統一模塊中,我們這裡以XDATools的實現為範例(後續這套算法將取代uni-ligprep + unidock的流程,成為hermite或launching上新的統一流程)
AutoDockRunner的使用方式如下:
本範例使用一個FEP標準測試集中的Bace體系,共36個分子,進行constraint docking作為範例,docking engine以watvina為例:
ps. Uni-Dock目前在constraint docking上的表現不佳,由於算法原因,core容易固定不住,需要持續優化,因此這裡使用watvina為舉例。
Imports
引入依賴以及添加各種牛鬼蛇神的環境變量:
docking的前後處理以及運行流程都透過引入一個 AutoDockRunner
解決。
準備輸入文件,包含標準化過後的蛋白pdb文件、口袋中心座標與需要對接的小分子sdf文件,以及tmeplate docking對應的參考分子:
目前AutoDockRunner的主要輸入如下:
ligand_sdf_file_name_list: 小分子的sdf路徑列表,支持一個sdf包含多個小分子構像,同時支持多個sdf文件並行處理
protein_pdb_file_name_list: 蛋白pdb文件列表,默認支持ensemble docking,可以一次對多個receptor構像進行探索
target_center_list: 蛋白口袋中心座標列表,與protein_pdb_file_name_list一一對應
box_size: docking使用的盒子大小
docking_engine: 使用的對接軟件,支持['ad-gpu', 'adfr', 'unidock', 'watvina']
covalent_ligand: 若對接模式為共價對接,則指定為True
template_docking: 若對接模式為core constraint docking,則指定為True
reference_sdf_file_name: 對接模式為core constriant docking時,需要指定參考分子的sdf文件路徑,此參考分子可以是對接分子的core,也可以是某一個同系列陽參,程序會自動尋找MCS匹配。暫不支持core-hopping場景。
generate_torsion_tree_sdf: 若為True,則torsion tree程序會產生Uni-Dock所定義的帶有torsion tree信息的sdf文件格式,用於Uni-Dock中sdf I/O的場景。
n_cpu: 使用的cpu並行核數,建議根據配置機器的cpu核數量指定
num_docking_runs: 指定engine產生的docking pose數量上限
working_dir_name: 工作文件路徑,所有AutoDockRunner的輸出都會在此路徑,根據流程產生四個子文件夾
/opt/mamba/lib/python3.9/site-packages/MDAnalysis/topology/PDBParser.py:331: UserWarning: Element information is missing, elements attribute will not be populated. If needed these can be guessed using MDAnalysis.topology.guessers. warnings.warn("Element information is missing, elements attribute " /opt/mamba/lib/python3.9/site-packages/MDAnalysis/coordinates/PDB.py:451: UserWarning: 1 A^3 CRYST1 record, this is usually a placeholder. Unit cell dimensions will be set to None. warnings.warn("1 A^3 CRYST1 record," /opt/mamba/lib/python3.9/site-packages/MDAnalysis/coordinates/PDB.py:775: UserWarning: Unit cell dimensions not found. CRYST1 record set to unitary values. warnings.warn("Unit cell dimensions not found. " /opt/mamba/lib/python3.9/site-packages/MDAnalysis/coordinates/PDB.py:1151: UserWarning: Found no information for attr: 'elements' Using default value of ' ' warnings.warn("Found no information for attr: '{}'" /opt/mamba/lib/python3.9/site-packages/MDAnalysis/coordinates/PDB.py:1151: UserWarning: Found no information for attr: 'formalcharges' Using default value of '0' warnings.warn("Found no information for attr: '{}'" Computing WATVina grid ... done. Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -4.59 0.00 2.41 -17.36 -1.48 -3.92 0.00 -0.07 0.00 ! 2 -4.52 2.59 0.32 -13.80 -1.48 -4.54 0.00 -0.41 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -4.77 0.00 2.31 -19.07 -1.48 -4.29 0.00 -0.26 0.09 ! 2 -4.69 2.50 0.44 -15.66 -1.48 -4.71 0.00 -0.50 0.01 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -4.89 0.00 2.33 -20.25 -1.48 -4.35 0.00 -0.42 0.09 ! 2 -4.71 2.48 0.43 -16.36 -1.48 -4.71 0.00 -0.66 0.02 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.17 0.00 2.33 -20.27 -1.48 -4.41 0.00 -0.26 0.01 ! 2 -5.01 2.52 0.45 -15.87 -1.48 -4.83 0.00 -0.69 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.36 0.00 2.30 -21.09 -1.48 -4.65 0.00 -0.40 0.00 ! 2 -4.81 2.39 0.53 -16.71 -1.48 -5.11 0.00 -0.41 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.70 0.00 2.30 -22.78 -1.48 -5.01 0.00 -0.36 0.01 ! 2 -5.50 2.45 0.30 -18.49 -1.48 -4.98 0.00 -0.79 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -6.02 0.00 2.27 -24.40 -1.48 -5.19 0.00 -0.50 0.00 ! 2 -5.07 2.32 0.66 -20.07 -1.48 -5.61 0.00 -0.09 0.00 ! 3 -4.81 0.61 2.21 -19.92 -1.48 -4.60 0.00 -0.15 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.25 0.00 2.30 -21.24 -1.48 -4.43 0.00 -0.25 0.00 ! 2 -5.18 2.48 0.40 -17.48 -1.48 -4.94 0.00 -0.65 0.01 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.60 0.00 2.32 -22.61 -1.48 -5.28 0.00 -0.44 0.01 ! 2 -5.00 2.50 0.32 -17.04 -1.48 -5.34 0.00 -0.65 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.39 0.00 2.28 -21.94 -1.48 -4.16 0.00 -0.25 0.00 ! 2 -5.36 2.40 0.61 -18.22 -1.62 -4.40 0.00 -0.60 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.16 0.00 0.28 -18.68 -1.62 -4.83 0.00 -0.69 0.00 ! 2 -5.13 2.29 2.13 -22.02 -1.66 -4.20 0.00 -0.26 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.00 0.00 0.29 -18.23 -1.58 -4.73 0.00 -0.75 0.00 ! 2 -4.98 2.29 2.12 -21.49 -1.61 -4.11 0.00 -0.36 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.46 0.00 2.20 -21.95 -1.60 -3.71 0.00 -0.16 0.00 ! 2 -5.44 2.32 0.34 -18.23 -1.59 -4.30 0.00 -0.58 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.41 0.00 2.31 -22.74 -1.52 -3.52 0.00 -0.40 0.00 ! 2 -5.32 2.41 0.76 -18.53 -1.59 -4.18 0.00 -0.65 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.01 0.00 0.42 -18.05 -1.48 -4.96 0.00 -0.71 0.00 ! 2 -4.86 2.92 2.74 -20.92 -1.48 -4.42 0.00 -0.26 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -3.60 0.00 0.44 -12.39 -1.52 -3.85 0.00 -0.80 0.17 ! 2 -2.73 1.62 1.68 -15.65 -0.24 -0.69 0.00 -0.71 0.19 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.03 0.00 2.47 -20.09 -1.48 -3.56 0.00 -0.17 0.00 ! 2 -4.56 2.66 0.33 -13.51 -1.48 -3.61 0.00 -0.51 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -4.92 0.00 0.28 -18.65 -1.48 -3.61 0.00 -0.52 0.00 ! 2 -4.62 2.43 2.38 -19.31 -1.51 -3.52 0.00 -0.22 0.00 ! 3 -4.20 2.01 1.82 -16.32 -1.48 -4.00 0.00 -0.25 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.09 0.00 0.35 -21.20 -1.55 -3.11 0.00 -0.78 0.04 ! 2 -3.02 1.69 1.71 -17.93 -0.33 -0.04 0.00 -0.62 0.18 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -4.76 0.00 0.12 -18.92 -1.49 -2.10 0.00 -0.53 0.00 ! 2 -4.71 2.93 2.91 -20.01 -1.51 -3.36 0.00 -0.22 0.00 ! 3 -4.54 1.96 1.86 -15.66 -1.88 -3.92 0.00 -0.35 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.05 0.00 0.33 -19.48 -1.51 -3.37 0.00 -0.52 0.00 ! 2 -4.65 2.93 2.82 -19.55 -1.51 -3.52 0.00 -0.22 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.35 0.00 0.26 -21.06 -1.48 -3.75 0.00 -0.53 0.00 ! 2 -4.81 2.98 2.89 -20.33 -1.51 -3.68 0.00 -0.23 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -4.89 0.00 0.33 -19.01 -1.47 -3.67 0.00 -0.74 0.00 ! 2 -4.00 1.67 1.69 -21.86 -0.27 -0.51 0.00 -0.65 0.01 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -4.15 0.00 0.32 -14.14 -1.47 -3.92 0.00 -0.71 0.01 ! 2 -3.32 1.59 1.62 -17.44 -0.25 -0.76 0.00 -0.63 0.01 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.22 0.00 0.29 -19.46 -1.48 -4.55 0.00 -0.66 0.00 ! 2 -4.72 2.22 2.15 -20.14 -1.48 -4.21 0.00 -0.30 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -4.03 0.00 0.30 -14.91 -1.53 -4.05 0.00 -0.75 0.16 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -4.09 0.00 0.41 -14.93 -1.53 -3.81 0.00 -0.70 0.15 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -3.94 0.00 0.59 -15.00 -1.48 -4.20 0.00 -0.83 0.17 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.40 0.00 0.28 -21.17 -1.48 -4.35 0.00 -0.66 0.00 ! 2 -4.63 2.26 2.22 -20.25 -1.48 -3.29 0.00 -0.31 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.36 0.00 0.27 -21.33 -1.48 -3.78 0.00 -0.66 0.00 ! 2 -4.74 2.32 2.28 -20.68 -1.51 -3.37 0.00 -0.31 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.21 0.00 0.39 -20.00 -1.48 -3.98 0.00 -0.65 0.00 ! 2 -4.66 2.38 2.24 -19.90 -1.49 -3.94 0.00 -0.30 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.25 0.00 0.38 -20.62 -1.49 -3.79 0.00 -0.65 0.00 ! 2 -4.59 2.36 2.32 -20.04 -1.48 -3.23 0.00 -0.31 0.00 ! 3 -4.31 1.81 1.54 -17.73 -1.48 -3.80 0.00 -0.27 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.30 0.00 0.11 -21.47 -1.48 -3.86 0.00 -0.70 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.20 0.00 0.16 -21.58 -1.49 -2.33 0.00 -0.67 0.00 ! 2 -4.83 1.87 1.75 -18.08 -1.89 -3.99 0.00 -0.38 0.00 ! 3 -4.82 2.80 2.78 -21.34 -1.51 -3.20 0.00 -0.31 0.00 ! 4 -3.21 0.69 0.83 -9.45 -1.48 -3.31 0.00 -0.56 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. +-----------+-------------+------------------------------------------------+ | summary | RMSD_TO | Score contribution | +---+-------+------+------+-------+-------+-------+-------+-------+--------+ |No.| score | best | init | VDW | HBond | Elect | Desol | Intra | Torsion| +---+-------+------+------+-------+-------+-------+-------+-------+--------+ ! 1 -5.50 0.00 0.31 -22.17 -1.51 -3.54 0.00 -0.67 0.00 ! 2 -4.79 2.81 2.71 -21.00 -1.52 -3.36 0.00 -0.31 0.00 Using random seed: -130011850 Performing search ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----| *************************************************** done. Refining results ... done. 46.6844437122345
在此範例中只列出了AutoDockRunner中適用於template docking的選項,對於free docking或covalent docking,有各自不同的選項需要留意,詳情可見docstring
AutoDockRunner
的輸出匯總為一個dataframe,這裡簡單查看對接結果與相關分析作圖:
ligand_docked_sdf_file_name | conformer_energy | binding_free_energy | ligand_efficiency | ligand_smiles_string | ligand_original_sdf_file_name | |
---|---|---|---|---|---|---|
0 | /data/Projects/Docking_Protocol/Bace_watvina/t... | -67.901642 | -4.6 | -0.209091 | CN1C(=O)[C@@](C)(c2cccc(-c3cccc(Cl)c3)c2)[NH+]... | /data/Projects/Docking_Protocol/Bace_watvina/C... |
1 | /data/Projects/Docking_Protocol/Bace_watvina/t... | -71.584129 | -4.5 | -0.204545 | CN1C(=O)[C@@](C)(c2cccc(-c3cccc(Cl)c3)c2)[NH+]... | /data/Projects/Docking_Protocol/Bace_watvina/C... |
2 | /data/Projects/Docking_Protocol/Bace_watvina/t... | -66.151817 | -4.8 | -0.208696 | CC[C@]1(c2cccc(-c3cccc(Cl)c3)c2)[NH+]=C(N)N(C)... | /data/Projects/Docking_Protocol/Bace_watvina/C... |
3 | /data/Projects/Docking_Protocol/Bace_watvina/t... | -68.893745 | -4.7 | -0.204348 | CC[C@]1(c2cccc(-c3cccc(Cl)c3)c2)[NH+]=C(N)N(C)... | /data/Projects/Docking_Protocol/Bace_watvina/C... |
4 | /data/Projects/Docking_Protocol/Bace_watvina/t... | -62.776211 | -4.9 | -0.204167 | CC(C)[C@]1(c2cccc(-c3cccc(Cl)c3)c2)[NH+]=C(N)N... | /data/Projects/Docking_Protocol/Bace_watvina/C... |
... | ... | ... | ... | ... | ... | ... |
73 | /data/Projects/Docking_Protocol/Bace_watvina/t... | -21.592833 | -5.5 | -0.203704 | CN1C(=O)[C@@](c2ccccc2)(c2cccc(-c3cncc(F)c3)c2... | /data/Projects/Docking_Protocol/Bace_watvina/C... |
74 | /data/Projects/Docking_Protocol/Bace_watvina/t... | -16.771217 | -4.8 | -0.177778 | CN1C(=O)[C@@](c2ccccc2)(c2cccc(-c3cncc(F)c3)c2... | /data/Projects/Docking_Protocol/Bace_watvina/C... |
75 | /data/Projects/Docking_Protocol/Bace_watvina/t... | -20.970114 | -5.8 | -0.214815 | CN1C(=O)[C@@](c2ccccc2)(c2cccc(-c3cncc(Cl)c3)c... | /data/Projects/Docking_Protocol/Bace_watvina/C... |
76 | /data/Projects/Docking_Protocol/Bace_watvina/t... | -16.169964 | -4.9 | -0.181481 | CN1C(=O)[C@@](c2ccccc2)(c2cccc(-c3cncc(Cl)c3)c... | /data/Projects/Docking_Protocol/Bace_watvina/C... |
77 | /data/Projects/Docking_Protocol/Bace_watvina/t... | -14.723411 | -4.6 | -0.170370 | CN1C(=O)[C@@](c2ccccc2)(c2cccc(-c3cncc(Cl)c3)c... | /data/Projects/Docking_Protocol/Bace_watvina/C... |
78 rows × 6 columns