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