to_rdmol
¶
Converts a GraphData with the features of
from_rdmol() back to an RDKit molecule, as PyG's to_rdmol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
GraphData
|
The molecular graph. |
required |
kekulize
|
bool
|
Whether to convert the aromatic bonds to single and double
bonds. Default: |
False
|
Returns:
| Type | Description |
|---|---|
Any
|
The sanitized |
Source code in mlx_graphs/utils/smiles.py
from mlx_graphs.utils import to_rdmol · mlx_graphs/utils/smiles.py