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 41 41: def initialize(entry) 42: super(entry, TAGSIZE) 43: end
ALL_REAC ’;’
# File lib/bio/db/kegg/enzyme.rb, line 83 83: def all_reac 84: field_fetch('ALL_REAC') 85: end
COFACTOR
# File lib/bio/db/kegg/enzyme.rb, line 116 116: def cofactors 117: field_fetch('COFACTOR').split(/\s*;\s*/) 118: end
COMMENT
# File lib/bio/db/kegg/enzyme.rb, line 121 121: def comment 122: field_fetch('COMMENT') 123: end
DBLINKS
# File lib/bio/db/kegg/enzyme.rb, line 161 161: def dblinks_as_strings 162: lines_fetch('DBLINKS') 163: end
DISEASE
# File lib/bio/db/kegg/enzyme.rb, line 141 141: def diseases 142: lines_fetch('DISEASE') 143: end
INHIBITOR
# File lib/bio/db/kegg/enzyme.rb, line 111 111: def inhibitors 112: field_fetch('INHIBITOR').split(/\s*;\s*/) 113: end
# File lib/bio/db/kegg/enzyme.rb, line 87 87: def iubmb_reactions 88: all_reac.sub(/;\s*\(other\).*/, '').split(/\s*;\s*/) 89: end
# File lib/bio/db/kegg/enzyme.rb, line 91 91: def kegg_reactions 92: reac = all_reac 93: if reac[/\(other\)/] 94: reac.sub(/.*\(other\)\s*/, '').split(/\s*;\s*/) 95: else 96: [] 97: end 98: end
NAME
# File lib/bio/db/kegg/enzyme.rb, line 59 59: def names 60: field_fetch('NAME').split(/\s*;\s*/) 61: end
# File lib/bio/db/kegg/enzyme.rb, line 54 54: def obsolete? 55: entry[/Obsolete/] ? true : false 56: end
PATHWAY
# File lib/bio/db/kegg/enzyme.rb, line 126 126: def pathways_as_strings 127: lines_fetch('PATHWAY') 128: end
PRODUCT
# File lib/bio/db/kegg/enzyme.rb, line 106 106: def products 107: field_fetch('PRODUCT').split(/\s*;\s*/) 108: end
STRUCTURES
# File lib/bio/db/kegg/enzyme.rb, line 151 151: def structures 152: unless @data['STRUCTURES'] 153: @data['STRUCTURES'] = fetch('STRUCTURES').sub(/(PDB: )*/,'').split(/\s+/) 154: end 155: @data['STRUCTURES'] 156: end