New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow disabling output of dative bonds to SMILES #7384
base: master
Are you sure you want to change the base?
Conversation
… to the SMILES add forms of GetAtomSmiles() and GetBondSmiles() that take SmilesWriteParams
Why not off by default? |
Firstly because that would be serious change in behavior. Secondly because I believe that it, like the other SMILES and SMARTS extensions the RDKit supports, are valuable and useful additions. |
//! \overload | ||
inline std::string ChemicalReactionToRxnSmarts(const ChemicalReaction &rxn) { | ||
SmilesWriteParams params; | ||
params.canonical = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to take a while to go through, can you give me the nickel tour? Why do we need canonical=False for instance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because it's SMARTS and we can't do sensible canonicalization with SMARTS
Also adds the option to write dative bonds to SMILES as coordinate bonds.
Fixes #7372
Still needs: