-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path__init__.py
More file actions
56 lines (52 loc) · 1.48 KB
/
Copy path__init__.py
File metadata and controls
56 lines (52 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
"""MoleCode — Markush / abbreviated-group representation.
Extends the small-molecule grammar with **abbreviation nodes** written with
curly braces (e.g. ``Mol_X_1{Boc}``, ``{R1}``, ``{Ar}``) so that variable
R-groups and named substituents can be represented without expanding them into
atoms. Includes an RDKit-free graph-isomorphism comparator (``molecode_isomorphic``)
that scores predictions up to abbreviation expansion and Kekulé ambiguity.
>>> from molecode.markush import mol_to_mermaid, mermaid_to_mol
>>> from molecode.markush import MoleCodeGraph, molecode_isomorphic, EXPAND_MAP
"""
from .rdkit_to_mermaid import MolToMermaidConverter, mol_to_mermaid
from .mermaid_to_rdkit import (
MermaidMolParser,
mermaid_to_mol,
mol_to_smiles,
mol_to_inchi,
has_invalid_atoms,
get_invalid_atom_labels,
)
from .graph import (
MoleCodeGraph,
NodeInfo,
EdgeInfo,
normalize_abbrev_name,
molecode_isomorphic,
)
from .abbreviation_map import (
SINGLE_ATOM_MAP,
SUBGRAPH_MAP,
NON_EXPANDABLE,
build_expand_map,
EXPAND_MAP,
)
__all__ = [
"MolToMermaidConverter",
"mol_to_mermaid",
"MermaidMolParser",
"mermaid_to_mol",
"mol_to_smiles",
"mol_to_inchi",
"has_invalid_atoms",
"get_invalid_atom_labels",
"MoleCodeGraph",
"NodeInfo",
"EdgeInfo",
"normalize_abbrev_name",
"molecode_isomorphic",
"SINGLE_ATOM_MAP",
"SUBGRAPH_MAP",
"NON_EXPANDABLE",
"build_expand_map",
"EXPAND_MAP",
]