Been meaning to get round to this for a while. This patch updates hydrogen adding and removal in the AtomContainerManipulator. The removeHydrogens now considers stereo-elements and so '[C@]([H])(C)(CC)O' can be correctly converted to '[C@H](C)(CC)O'. Also the method now checks whether a hydrogen can be represented as implicit. This changes the behaviour of molecular hydrogen which now does not return an empty container.
May also want to never remove bridging hydrogens but there is already a separate method for that.
Log in to post a comment.