Support writing CX extensions in reactions #7340
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We are hoping to get support for writing CX extensions when writing to reaction SMILES/SMARTS. This is just a draft, I wanted to see if we think this would work. At the very least it would be nice to be able to read/write atom labels and stereo information.
Currently, there are a few things that aren’t supported
I’m also a little confused about the substance group writing — it seems like the atoms are correct, however there are some extra commas and colons written compared to the input. RDKit seems to parse this correctly but I'm not sure if this is expected/a problem? For example:
If this seems like a reasonable approach, I can try to extend this to work for SMILES as well.