def _pathway(self): s = [] for entry in self.pathway: s.append(entry[0] + ": " + entry[1] + " " + entry[2]) return _write_kegg("PATHWAY", [_wrap_kegg(l, wrap_rule=id_wrap(16)) for l in s])
def _pathway(self): s = [] for entry in self.pathway: s.append(entry[0] + " " + entry[1]) return _write_kegg("PATHWAY", [_wrap_kegg(l, wrap_rule=id_wrap(16)) for l in s])
def _structures(self): s = [] for entry in self.structures: s.append(entry[0] + ": " + " ".join(entry[1]) + " ") return _write_kegg("STRUCTURES", [_wrap_kegg(l, wrap_rule = struct_wrap(5)) \ for l in s])
def _disease(self): s = [] for entry in self.disease: s.append(entry[0] + ": " + entry[1] + " " + entry[2]) return _write_kegg("DISEASE", [_wrap_kegg(l, wrap_rule = id_wrap(13)) \ for l in s])
def _dblinks(self): s = [] for entry in self.dblinks: s.append(entry[0] + ": " + " ".join(entry[1])) return _write_kegg("DBLINKS", [_wrap_kegg(l, wrap_rule = id_wrap(9)) \ for l in s])
def _genes(self): s = [] for entry in self.genes: s.append(entry[0] + ": " + " ".join(entry[1])) return _write_kegg("GENES", [_wrap_kegg(l, wrap_rule = id_wrap(5)) \ for l in s])
def _structures(self): s = [] for entry in self.structures: s.append(entry[0] + ": " + " ".join(entry[1]) + " ") return _write_kegg("STRUCTURES", [_wrap_kegg(l, wrap_rule=struct_wrap(5)) for l in s])
def _dblinks(self): s = [] for entry in self.dblinks: s.append(entry[0] + ": " + " ".join(entry[1])) return _write_kegg("DBLINKS", [_wrap_kegg(l, wrap_rule=id_wrap(9)) for l in s])
def _enzyme(self): s = "" for entry in self.enzyme: if entry[1]: t = entry[0] + " (" + entry[1] + ")" else: t = entry[0] s = s + t.ljust(16) return _write_kegg("ENZYME", [_wrap_kegg(s, wrap_rule=id_wrap(0))])
def _enzyme(self): s = "" for entry in self.enzyme: if entry[1]: t = entry[0] + " (" + entry[1] + ")" else: t = entry[0] s = s + t.ljust(16) return _write_kegg("ENZYME", [_wrap_kegg(s, wrap_rule = id_wrap(0))])
def _name(self): return _write_kegg("NAME", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.name])
def _comment(self): return _write_kegg("COMMENT", [_wrap_kegg(l, wrap_rule=id_wrap(0)) for l in self.comment])
def _cofactor(self): return _write_kegg("COFACTOR", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.cofactor])
def _product(self): return _write_kegg("PRODUCT", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.product])
def _sysname(self): return _write_kegg("SYSNAME", [_wrap_kegg(l, wrap_rule = name_wrap) \ for l in self.sysname])
def _disease(self): s = [] for entry in self.disease: s.append(entry[0] + ": " + entry[1] + " " + entry[2]) return _write_kegg("DISEASE", [_wrap_kegg(l, wrap_rule=id_wrap(13)) for l in s])
def _genes(self): s = [] for entry in self.genes: s.append(entry[0] + ": " + " ".join(entry[1])) return _write_kegg("GENES", [_wrap_kegg(l, wrap_rule=id_wrap(5)) for l in s])
def _enzyme(self): return _write_kegg("ENZYME", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.enzyme])
def _reaction(self): return _write_kegg("REACTION", [_wrap_kegg(l, wrap_rule=rxn_wrap) for l in self.reaction])
def _reaction(self): return _write_kegg("REACTION", [_wrap_kegg(l, wrap_rule = rxn_wrap) \ for l in self.reaction])
def _name(self): return _write_kegg("NAME", map(lambda l: _wrap_kegg(l, wrap_rule = name_wrap), self.name))
def _sysname(self): return _write_kegg("SYSNAME", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.sysname])
def _substrate(self): return _write_kegg("SUBSTRATE", [_wrap_kegg(l, wrap_rule = name_wrap) \ for l in self.substrate])
def _substrate(self): return _write_kegg("SUBSTRATE", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.substrate])
def _product(self): return _write_kegg("PRODUCT", [_wrap_kegg(l, wrap_rule = name_wrap) \ for l in self.product])
def _inhibitor(self): return _write_kegg("INHIBITOR", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.inhibitor])
def _inhibitor(self): return _write_kegg("INHIBITOR", [_wrap_kegg(l, wrap_rule = name_wrap) \ for l in self.inhibitor])
def _effector(self): return _write_kegg("EFFECTOR", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.effector])
def _cofactor(self): return _write_kegg("COFACTOR", [_wrap_kegg(l, wrap_rule = name_wrap) \ for l in self.cofactor])
def _name(self): return _write_kegg("NAME", map(lambda l: _wrap_kegg(l, wrap_rule=name_wrap), self.name))
def _effector(self): return _write_kegg("EFFECTOR", [_wrap_kegg(l, wrap_rule = name_wrap) \ for l in self.effector])
def _comment(self): return _write_kegg("COMMENT", [_wrap_kegg(l, wrap_rule = id_wrap(0)) \ for l in self.comment])