Skip to content

Selection function #21

@rapodaca

Description

@rapodaca

Canonicalization requires an input molecule whose double bonds will not give rise to DIME. There should be a function that selects atoms such that the resulting molecule is incapable of DIME.

A thumbnail of the approach:

  1. Find the set of all atoms (A) having just one double bond.
  2. From A, build a set of connected subgraphs (S).
  3. For each subgraph s in S, build a matching based on single/double bond pattern.
  4. Perform a symmetric difference on s, demoting double bonds to single and promoting single bonds to double. If this operation does not place an atom at the vertex of two double bonds, it passes. Otherwise it fails.
  5. Select all atoms for each passing subgraph s.

This avoids gratuitous selection in that heteroatoms without double bonds are excluded.

But it also avoids the selection of atoms whose connected subgraph can't possibly undergo DIME. For example, no atom in C1=C(C=CC=C1)1 would be selected using the above approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions