Skip to content

kekulize mol question #7193

Closed Answered by dehaenw
tsn2027 asked this question in Q&A
Feb 26, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

In my experience it is quite hard to work with radicals using the runreactants machinery.
Here is one approach that gives the intended output, the approach here is to use explicit Hs during the reaction, and then remove them afterwards. Another factor is that the entire benzene ring is factored in and explicitly dearomatized. See the below codeblock, which output the two expected structures

radical_smi = "c1cccc(Cl)c1[CH2]"
mol = Chem.MolFromSmiles(radical_smi)
mol = Chem.AddHs(mol) # unsure whether adding H would help.
products = AllChem.ReactionFromSmarts("[Cv3:0]-[c:1]1[c:2][c:3][c:4][c:5][c:6]1>>[C:0]=[C:1]1-[Cv3:2]=[C:3]-[C:4]=[C:5]-[C:6]1").RunReactants((mol,))

for i in range(len(p…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tsn2027
Comment options

Answer selected by tsn2027
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants