When adapting the model to a new dataset, each line must be a reaction SMILES (rxn smiles) in the format: reactants>>products.
Requirements:
- Structure: Reactants are separated by
. and placed before >>. The product is placed after >>. - Atom Mapping: Atom mapping numbers must be provided and must be consecutive integers starting from 1.
- Hydrogen Atoms: To avoid atom mapping issues, it is recommended to convert raw reaction SMILES (which may contain explicit hydrogens) to SMILES without hydrogens using RDKit before adding map IDs.
Example of a valid mapped reaction SMILES:
[CH3:1][NH2:2].[N+:3](=[O:4])([O-:5])[c:6]1[cH:7][c:8]([C:9](=[O:10])[OH:11])[cH:12][cH:13][c:14]1[Cl:15].[OH2:16]>>[N+:3](=[O:4])([O-:5])[c:6]1[cH:7][c:8]([C:9](=[O:10])[OH:11])[cH:12][cH:13][c:14][NH:1][CH3:2]
Workflow for new datasets:
- Clean local cache:
./clean.sh - Pre-process SMILES (remove hydrogens and add consecutive map IDs).
- Train/Evaluate using the provided scripts.