Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ assert valid_mol_eval(valid_completion_smiles, partial_smiles)

### Visualization

If it helps, you can visualize the molecules:
If it helps, you can visualize molecules:
Comment thread
jamesbraza marked this conversation as resolved.

```python
from ether0.data import draw_molecule
Expand All @@ -134,6 +134,19 @@ or in your terminal via `chafa valid_molecule.svg`

![valid molecule](docs/assets/valid_molecule.svg)

Similarly, one can visualize reactions:

```python
from ether0.data import draw_reaction

# Source: ether0-benchmark's test split's question 41251b01-7291-56a0-9030-ea51bab03a4c
rxn_smiles = "CC1CNCC1c1nc2c(cnn2C(C)C)c(=O)[nH]1.COc1ccc(C=O)cn1>>"

rxn_text = draw_reaction(rxn_smiles)
with open("reaction.svg", "w") as f:
f.write(rxn_text)
```

### Benchmark

Here is a sample baseline of
Expand Down