Closed amorehead closed 3 months ago
The problem with this is that it fails silently, problematic molecules will go unnoticed, Currently, the PDBQT writer raises the error if there are NaNs or Infs, and the error can be escaped if bad_charges_ok=True
which is useful for docking with Vina because charges are not needed.
I see. I did not notice bad_charges_ok
the first time around, however, it seems like this will solve my initial issue. In which case, I'll close this PR. Thanks for your quick response!
Thank you for looking into it. Maybe bad_charges_ok
should become set_bad_charges_to_zero
so we don't see nan
or inf
in the PDBQT.
I think that might make more sense, since to me it seems like having nan
s or inf
s listed in the PDBQTs might also confuse users. In fact, I've made a PR for this here: https://github.com/forlilab/Meeko/pull/92.
nan
orinf
charges that may arise inmolsetup.py
due to using unsupported RDKit atom types