4.1.13. The haxes module

Added in version 1.1.

This module contains various experimental functionality that has been put together pragmatically. That is that it has not been optimized in any significant way, has not been tested thoroughly or systematically, and it may not handle all corner cases. The plan is that the functionality should be reimplemented in a proper way at a later stage.

haxes.ruleFromReactionSmiles(line, name=None, allowAbstract=False, *, invert=False, add=True)
Returns:

a rule loaded from the given reaction SMILES string. The paramter allowAbstract is passed to Graph.fromSMILES(), while the remaining paramters are passed to Rule.fromGMLString().

Return type:

Rule

haxes.reactionSmilesFromRule(r)
Parameters:

r (Rule) – the rule to convert to a reaction SMILES string.

Returns:

a reaction SMILES string that encodes the given rule.

Return type:

str