Skip to content

atom mapping in reaction #7133

Discussion options

You must be logged in to vote

It's tricky (possible, but tricky) to do this correctly. But there's an easy workaround.

I think your best bet here is to combine the reactants into a single molecule and add parentheses to the reaction SMARTS to group the two reactants into one:

mol1 = Chem.MolFromSmiles('Clc1ccccc1')
mol2 = Chem.MolFromSmiles('C[P+]([Pd])(C)C')
rmol = Chem.CombineMols(mol1,mol2)
sr = AllChem.ReactionFromSmarts('([c:3][Cl:1].[Pd:2])>>[Pd:2]([Cl:1])[c:3]')
for r in make_rxns(sr, [rmol]):
    smi = AllChem.ReactionToSmiles(r)
    print(smi)

This outputs:

([CH3:7][P+:8]([Pd:9])([CH3:10])[CH3:11].[Cl:0][c:1]1[cH:2][cH:3][cH:4][cH:5][cH:6]1)>>[Cl:0][Pd:9]([c:1]1[cH:2][cH:3][cH:4][cH:5][cH:6]1)[P+:8]([CH3:7])…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@manajit-das
Comment options

@greglandrum
Comment options

Answer selected by manajit-das
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants