Skip to content

[BUG] - adjacency_dict does not capture floater atoms, like single atom solvent molecules #97

Description

@coltonbh

Describe the bug
Because .connectivity only contains atoms with connections, unconnected atoms are omitted from .adjacency_dict. This revealed itself when I removed hydrogens from a protein structure and then had lots of floater O atoms that were missing from the adjacency_dict.

Fix
Need to add a key with an empty list of children to the adjacency dictionary for all indices not in the adjacency_dict after incorporating the .connectivity information.

.adjacency_matrix is OK because it is already has zeros for all elements.

Additional Context
Move these computational bits to qcinf? Annoying to need a third party library for this stuff. Mandates pynauty for qcio.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions