Skip to content

Commit

Permalink
New: SMARTS for ring-forming scission
Browse files Browse the repository at this point in the history
  • Loading branch information
avcopan committed Jan 16, 2025
1 parent 16e77d7 commit c637740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion automol/amchi/_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def connectivity_digest(chi: str, max_len: int = 10) -> str:
:return: The short hash
"""
# hash length by heavy atom count
hash_len_dct = {0: 0, 1: 0, 2: 4, 3: 5, 4: 5, 5: 6, 6: 6}
hash_len_dct = {0: 0, 1: 0, 2: 4, 3: 5, 4: 5, 5: 6, 6: 6, 7: 6}

# Determine appropriate hash length
fml = formula(chi)
Expand Down
1 change: 1 addition & 0 deletions automol/graph/base/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class ReactionSmarts:
pi2_addition = "[*:1]=[*:2].[OX1v1:3]>>[*:1]-[*:2]-[OX1v1:3]"
elimination = "[H:5][C:1][C:2][O:3][OX1v1:4]>>[C:1]=[C:2].[OX1v1:3][O:4][H:5]"
abstraction = "[C:1][H:2].[OX1v1:3]>>[C:1].[H:2][OX1v1:3]"
ring_forming_scission = "([Cv3:1].[Ov2:2][O:3][H:4])>>[R:1][R:2].[O:3][H:4]"


def reactions(smarts: str, gra: object, symeq: bool = False) -> list[object]:
Expand Down

0 comments on commit c637740

Please sign in to comment.