| Class | Bio::KEGG::ENZYME |
| In: |
lib/bio/db/kegg/enzyme.rb
|
| Parent: | KEGGDB |
| DELIMITER | = | RS = "\n///\n" |
| TAGSIZE | = | 12 |
# File lib/bio/db/kegg/enzyme.rb, line 20
20: def initialize(entry)
21: super(entry, TAGSIZE)
22: end
ALL_REAC ’;’
# File lib/bio/db/kegg/enzyme.rb, line 62
62: def all_reac
63: field_fetch('ALL_REAC')
64: end
COFACTOR
# File lib/bio/db/kegg/enzyme.rb, line 95
95: def cofactors
96: field_fetch('COFACTOR').split(/\s*;\s*/)
97: end
COMMENT
# File lib/bio/db/kegg/enzyme.rb, line 100
100: def comment
101: field_fetch('COMMENT')
102: end
DBLINKS
# File lib/bio/db/kegg/enzyme.rb, line 140
140: def dblinks
141: lines_fetch('DBLINKS')
142: end
DISEASE
# File lib/bio/db/kegg/enzyme.rb, line 120
120: def diseases
121: lines_fetch('DISEASE')
122: end
INHIBITOR
# File lib/bio/db/kegg/enzyme.rb, line 90
90: def inhibitors
91: field_fetch('INHIBITOR').split(/\s*;\s*/)
92: end
# File lib/bio/db/kegg/enzyme.rb, line 66
66: def iubmb_reactions
67: all_reac.sub(/;\s*\(other\).*/, '').split(/\s*;\s*/)
68: end
# File lib/bio/db/kegg/enzyme.rb, line 70
70: def kegg_reactions
71: reac = all_reac
72: if reac[/\(other\)/]
73: reac.sub(/.*\(other\)\s*/, '').split(/\s*;\s*/)
74: else
75: []
76: end
77: end
NAME
# File lib/bio/db/kegg/enzyme.rb, line 38
38: def names
39: field_fetch('NAME').split(/\s*;\s*/)
40: end
# File lib/bio/db/kegg/enzyme.rb, line 33
33: def obsolete?
34: entry[/Obsolete/] ? true : false
35: end
PATHWAY
# File lib/bio/db/kegg/enzyme.rb, line 105
105: def pathways
106: lines_fetch('PATHWAY')
107: end
PRODUCT
# File lib/bio/db/kegg/enzyme.rb, line 85
85: def products
86: field_fetch('PRODUCT').split(/\s*;\s*/)
87: end
STRUCTURES
# File lib/bio/db/kegg/enzyme.rb, line 130
130: def structures
131: unless @data['STRUCTURES']
132: @data['STRUCTURES'] = fetch('STRUCTURES').sub(/(PDB: )*/,'').split(/\s+/)
133: end
134: @data['STRUCTURES']
135: end