brenda_transformer
GenericTreeTransformer
Bases: BaseTransformer
Transform extracted values from bottom-up.
Formats the tree into a dictionary with child token types as keys.
ReactionTreeTransformer
Bases: GenericTreeTransformer
Commentary in (...) are on substrates, and in |...| on products.
reaction(children)
Parse the reaction in the description node.
There should be three parts
- The left-hand-side of the reaction, which is a list of chemical
names, separated by
<space>+<space>. - The separator
<space>=<space>. - The right-hand-side of the reaction, which is a list of chemical
names, separated by
<space>+<space>.
Source code in parser/brenda_transformer.py
reversibility(children)
r for reversible, ir for irreversible, ? for unknown.