psamm.datasource.kegg – KEGG data parser

Module related to loading KEGG database files.

class psamm.datasource.kegg.CompoundEntry(values, filemark=None)

Representation of entry in KEGG compound file

exception psamm.datasource.kegg.ParseError

Exception used to signal errors while parsing

class psamm.datasource.kegg.ReactionEntry(values, filemark=None)

Representation of entry in KEGG reaction file

psamm.datasource.kegg.parse_compound_file(f, context=None)

Iterate over the compound entries in the given file.

psamm.datasource.kegg.parse_reaction(s)

Parse a KEGG reaction string

psamm.datasource.kegg.parse_reaction_file(f, context=None)

Iterate over the reaction entries in the given file.