A ligand imported into the Builder loses its formal charges; the direct SDF path keeps them

Aperta
#1,313 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c
Ambito
backend, databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

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-pdbqt as 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:

  1. Add a formal charge to TAtm and carry it through Fragment, the .frag format and DockReader::readFrag. The general fix, and it touches the core data model, so it wants care and a reason beyond docking.
  2. 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.
  3. 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.

Lingua principale
C
Stelle
10
Fork
8
Merge medio
6h 32m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FriendsofECCE/ECCE

Tutte le issue di FriendsofECCE/ECCE

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.