We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79260a1 commit 2aa887fCopy full SHA for 2aa887f
tests/test_mapper.py
@@ -108,3 +108,16 @@ def test_multiple_products(rxn_mapper: RXNMapper):
108
109
results = rxn_mapper.get_attention_guided_atom_maps(rxns)
110
assert_correct_maps(results, expected)
111
+
112
113
+def test_reaction_with_dative_bond(rxn_mapper: RXNMapper):
114
+ rxns = ["COC(=O)CCBr.O=C[O-]->[K+]>>COC(=O)CCOC(=O)C"]
115
+ expected = [
116
+ {
117
+ "mapped_rxn": "[CH3:1][O:2][C:3](=[O:4])[CH2:5][CH2:6]Br.[O:9]=[CH:8][O-:7]->[K+]>>[CH3:1][O:2][C:3](=[O:4])[CH2:5][CH2:6][O:7][C:8](=[O:9])[CH3:10]",
118
+ "confidence": 0.9322116305783666,
119
+ }
120
+ ]
121
122
+ results = rxn_mapper.get_attention_guided_atom_maps(rxns, canonicalize_rxns=False)
123
+ assert_correct_maps(results, expected)
0 commit comments