Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PDBQT parser for wrong H elements interpolation #957

Merged
merged 2 commits into from Jan 24, 2023

Commits on Jan 8, 2023

  1. fix unrecognized H element in PDBQT files

    Some protonated PDBQT files have H atom names starting with numbers.
    e.g. in Arginines `2HH2`.
    Previous code was infering element name from the first 2 letters of
    the atom name in PDBQT files. This resulted in having these atoms default
    to unknown elements, with a default vdw radius far greater than H's value
    and buggy connectivity after autobonding.
    This trick was probably used as a workaround due to special atom
    types being written in the elements columns.
    In this commit , the atom types are used instead
    with a mapping to element names taken from Meeko, a utility
    library for conversions to PDBQT.
    papillot committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    c111f7f View commit details
    Browse the repository at this point in the history
  2. add tests for PDBQT

    papillot committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    e68185b View commit details
    Browse the repository at this point in the history