-
Notifications
You must be signed in to change notification settings - Fork 158
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
Patch/canon aam smiles #465
Conversation
…mparator to be used.
… By default it produces the exact same ordering as the current bit packing used in Canon. However it is much simpler to add optional invariants (e.g. AtomAtomMaps).
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.
Did you really mean to say "initial initial"?
@@ -120,7 +123,7 @@ private Canon(int[][] g, long[] partition, boolean[] hydrogens, boolean symOnly) | |||
/** | |||
* Compute the canonical labels for the provided structure. The labelling | |||
* does not consider isomer information or stereochemistry. This method | |||
* allows provision of a custom array of initial invariants. | |||
* allows provision of a custom array of initial initial. |
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.
-> "initial seeds"?
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.
Stupid IDE likes to change all occurrences by default. Should be initial invariants.
fixed |
Resolves #274.
Atom Map Index now affects canonical ordering (if and only if output SMILES has atom maps). In this first example the two inputs (left of reaction) are the same except for their atom map numbering. They get different atom-maps.
The more useful
SmiFlavor.AtomAtomMapRenumber
flag takes the same input, canonicalises without atom-atom maps and then renumbers them on output:If desired the caller can track the renumbering by parsing the output inspecting the output ordering array.