Skip to content

suggestion: more restrictive cation/anion definitions #288

@wenyan4work

Description

@wenyan4work

The current definition is

        cation: str = "[+{1-},$([NX3&!$([NX3]-O)]-[C]=[NX3+])]",
        anion: str = "[-{1-},$(O=[C,S,P]-[O-])]",

I suggest a slightly more restrictive definition:

        cation: str = "[+{1-}!$(*~[*-]),$([NX3&!$([NX3]-O)]-[C]=[NX3+])]",
        anion: str = "[-{1-}!$(*~[*+]),$(O=[C,S,P]-[O-])]",

such that an cation atom is defined as an atom with positive formal charge but not immediately connected to an atom with a negative formal charge.

For example, dmso and azides are sometimes written as

C[S+](-[O-])C
R-N=[N+]=[N-]

These are probably not what we are looking for when searching for 'ionic' interactions.

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