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