with reaction_rules():
for pathway in ecocyc().all_pathways():
for gene in ecocyc().genes_of_pathway(pathway):
for enzyme in ecocyc().enzymes_of_gene(gene):
~gene > enzyme | k
from operator import add
from functools import reduce, partial
join = partial(reduce, add)
with reaction_rules():
for r, p, k in biomodels('BIOMD0000000019').reactions():
join(r) > join(p) | k
http://bioinformatics.ai.sri.com/ptools/ptools-fns.html
https://www.ebi.ac.uk/biomodels-main/BIOMD0000000019