A ligand imported into the Builder loses its formal charges; the direct SDF path keeps them
還沒有人認領這個 Issue。
評估
研究方向
Start with DockReader::readSdf in src/dock/DockIO.C and trace how formal charges reach DockAtom::formalCharge versus how DockReader::readFrag prepares fragments. The issue lists three possible designs and asks for a decision; review the TAtm, Fragment, and .frag data paths before choosing one. Done means selecting and documenting a design that prevents charged ligands from being silently mis-prepared.
由索引模型根據 Issue 內容生成。
描述
DockReader::readSdf (src/dock/DockIO.C:32) reads MDL formal charges two ways - the legacy charge column 37-39 (1 meaning +3 down to 7 meaning -3) and the M CHG records that override it - and stores them on DockAtom::formalCharge. ecce-pdbqt --ligand FILE.sdf therefore sees a carboxylate as charged.
TAtm has no formal-charge field, so a structure brought in through the Builder cannot carry one. ecce-pdbqt --frag FILE.frag reads an ECCE fragment and so has nothing to read either.
The two routes to the same docking run therefore disagree:
- ligand given to
ecce-pdbqtas an SDF directly: formal charges present. - ligand opened in the Builder, merged into the calculation's structure, then prepared from the fragment: formal charges absent.
Charged ligands are ordinary - carboxylates, phosphates, protonated amines - and the charge changes the atom typing and the hydrogen placement that the PDBQT preparation does, so the two routes can produce different input for the same molecule.
Found while adding the Builder's sdf/mol2 readers (wip/sdf-mol2-reader). The new readers do not parse M CHG precisely because there is nowhere to put it; that is a consequence of this, not a separate omission.
What this needs is a decision rather than a patch:
- Add a formal charge to
TAtmand carry it throughFragment, the .frag format andDockReader::readFrag. The general fix, and it touches the core data model, so it wants care and a reason beyond docking. - Keep formal charge out of the model and instead derive it where it is needed, from bond orders and valence, in the PDBQT preparation. Avoids the model change; silently differs from what the file said when the file said something.
- Carry it as a per-atom property beside the fragment rather than on the atom.
Until one of those is chosen, a charged ligand should at least not be silently mis-prepared: the preparation could say which route it took and whether it had charge information.
- 主要語言
- C
- 星號
- 10
- 分支
- 8
- 平均合併
- 6 小時 32 分鐘
- 30 天內合併 PR
- 1
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
FriendsofECCE/ECCE 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
FriendsofECCE/ECCE#1353 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
FriendsofECCE/ECCE#1348 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
FriendsofECCE/ECCE#1345 ·
查看 FriendsofECCE/ECCE 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
vincentarelbundock/xtx#11 ·
-
難度 1/5 1-3 小時 新手友好度 88/100
-
難度 2/5 1-3 小時 新手友好度 70/100
compiler-explorer/compiler-explorer#9738 ·
維護者通常 2 天內回覆
-
難度 1/5 1-3 小時 新手友好度 88/100
維護者通常 3 天內回覆
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values inside未關閉
難度 1/5 1 小時以內 新手友好度 92/100
kamgurgul/mib2q-carplay#74 ·