Skip to content

[FEATURE] - Add Connectivity Data From SMILES #5

Description

@coltonbh

Describe the solution you'd like
SMILES data contains the connectivity information. When doing structure_from_smiles add this data to the Structure object.

I think I'd want to do something like this for data validation on Structure as a field_validator:

  • Iterate over all bonds and set the lowest number first so that it's easy to check for duplicates, i.e., (2, 1, 1) becomes (1, 2, 1).
  • Then check for duplicate bonds, there can never be more than 1 bond between two atoms (it may have a bond order larger than 1, but there cannot be two entries with a (1, 2, x) bond.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions