示例#1
0
 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])
示例#2
0
 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])
示例#3
0
 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])    
示例#5
0
 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])
示例#7
0
 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])
示例#8
0
 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])
示例#9
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))])
示例#10
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))])
示例#11
0
 def _name(self):
     return _write_kegg("NAME",
                        [_wrap_kegg(l, wrap_rule=name_wrap)
                         for l in self.name])
示例#12
0
 def _comment(self):
     return _write_kegg("COMMENT", [_wrap_kegg(l, wrap_rule=id_wrap(0)) for l in self.comment])
示例#13
0
 def _cofactor(self):
     return _write_kegg("COFACTOR", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.cofactor])
示例#14
0
 def _product(self):
     return _write_kegg("PRODUCT", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.product])
示例#15
0
 def _name(self):
     return _write_kegg("NAME",
                        [_wrap_kegg(l, wrap_rule=name_wrap)
                         for l in self.name])
示例#16
0
 def _sysname(self):
     return _write_kegg("SYSNAME",
                        [_wrap_kegg(l, wrap_rule = name_wrap) \
                         for l in self.sysname])
示例#17
0
 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])
示例#18
0
 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])
示例#19
0
 def _enzyme(self):
     return _write_kegg("ENZYME",
                        [_wrap_kegg(l, wrap_rule=name_wrap)
                         for l in self.enzyme])
示例#20
0
 def _reaction(self):
     return _write_kegg("REACTION", [_wrap_kegg(l, wrap_rule=rxn_wrap) for l in self.reaction])
示例#21
0
 def _reaction(self):
     return _write_kegg("REACTION",
                        [_wrap_kegg(l, wrap_rule = rxn_wrap) \
                         for l in self.reaction])
示例#22
0
 def _name(self):
     return _write_kegg("NAME",
                        map(lambda l:
                            _wrap_kegg(l, wrap_rule = name_wrap),
                            self.name))
示例#23
0
 def _sysname(self):
     return _write_kegg("SYSNAME", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.sysname])
示例#24
0
 def _substrate(self):
     return _write_kegg("SUBSTRATE",
                        [_wrap_kegg(l, wrap_rule = name_wrap) \
                         for l in self.substrate])
示例#25
0
 def _substrate(self):
     return _write_kegg("SUBSTRATE", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.substrate])
示例#26
0
 def _product(self):
     return _write_kegg("PRODUCT",
                        [_wrap_kegg(l, wrap_rule = name_wrap) \
                         for l in self.product])
示例#27
0
 def _inhibitor(self):
     return _write_kegg("INHIBITOR", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.inhibitor])
示例#28
0
 def _inhibitor(self):
     return _write_kegg("INHIBITOR",
                        [_wrap_kegg(l, wrap_rule = name_wrap) \
                         for l in self.inhibitor])
示例#29
0
 def _effector(self):
     return _write_kegg("EFFECTOR", [_wrap_kegg(l, wrap_rule=name_wrap) for l in self.effector])
示例#30
0
 def _cofactor(self):
     return _write_kegg("COFACTOR",
                        [_wrap_kegg(l, wrap_rule = name_wrap) \
                         for l in self.cofactor])
示例#31
0
 def _name(self):
     return _write_kegg("NAME", map(lambda l: _wrap_kegg(l, wrap_rule=name_wrap), self.name))
示例#32
0
 def _effector(self):
     return _write_kegg("EFFECTOR",
                        [_wrap_kegg(l, wrap_rule = name_wrap) \
                         for l in self.effector])
示例#33
0
 def _enzyme(self):
     return _write_kegg("ENZYME",
                        [_wrap_kegg(l, wrap_rule=name_wrap)
                         for l in self.enzyme])
示例#34
0
 def _comment(self):
     return _write_kegg("COMMENT",
                        [_wrap_kegg(l, wrap_rule = id_wrap(0)) \
                         for l in self.comment])