Class: Bio::KEGG::ENZYME
- Inherits:
-
Bio::KEGGDB
- Object
- DB
- NCBIDB
- Bio::KEGGDB
- Bio::KEGG::ENZYME
- Defined in:
- lib/bio/db/kegg/enzyme.rb
Constant Summary collapse
- DELIMITER =
RS = "\n///\n"
- TAGSIZE =
12
Instance Method Summary collapse
-
#all_reac ⇒ Object
ALL_REAC ‘;’.
-
#classes ⇒ Object
CLASS.
-
#cofactors ⇒ Object
COFACTOR.
-
#comment ⇒ Object
COMMENT.
-
#dblinks ⇒ Object
DBLINKS.
-
#diseases ⇒ Object
DISEASE.
-
#entry ⇒ Object
ENTRY.
- #entry_id ⇒ Object
-
#genes ⇒ Object
GENES.
-
#inhibitors ⇒ Object
INHIBITOR.
-
#initialize(entry) ⇒ ENZYME
constructor
A new instance of ENZYME.
- #iubmb_reactions ⇒ Object
- #kegg_reactions ⇒ Object
-
#motifs ⇒ Object
MOTIF.
- #name ⇒ Object
-
#names ⇒ Object
NAME.
- #obsolete? ⇒ Boolean
-
#orthologs ⇒ Object
ORTHOLOGY.
-
#pathways ⇒ Object
PATHWAY.
-
#products ⇒ Object
PRODUCT.
-
#reaction ⇒ Object
REACTION.
-
#structures ⇒ Object
STRUCTURES.
-
#substrates ⇒ Object
SUBSTRATE.
-
#sysname ⇒ Object
SYSNAME.
Methods inherited from DB
#exists?, #fetch, #get, open, #tags
Constructor Details
Instance Method Details
#all_reac ⇒ Object
ALL_REAC ‘;’
62 63 64 |
# File 'lib/bio/db/kegg/enzyme.rb', line 62 def all_reac field_fetch('ALL_REAC') end |
#classes ⇒ Object
CLASS
47 48 49 |
# File 'lib/bio/db/kegg/enzyme.rb', line 47 def classes lines_fetch('CLASS') end |
#cofactors ⇒ Object
COFACTOR
95 96 97 |
# File 'lib/bio/db/kegg/enzyme.rb', line 95 def cofactors field_fetch('COFACTOR').split(/\s*;\s*/) end |
#comment ⇒ Object
COMMENT
100 101 102 |
# File 'lib/bio/db/kegg/enzyme.rb', line 100 def comment field_fetch('COMMENT') end |
#dblinks ⇒ Object
DBLINKS
140 141 142 |
# File 'lib/bio/db/kegg/enzyme.rb', line 140 def dblinks lines_fetch('DBLINKS') end |
#diseases ⇒ Object
DISEASE
120 121 122 |
# File 'lib/bio/db/kegg/enzyme.rb', line 120 def diseases lines_fetch('DISEASE') end |
#entry ⇒ Object
ENTRY
25 26 27 |
# File 'lib/bio/db/kegg/enzyme.rb', line 25 def entry field_fetch('ENTRY') end |
#entry_id ⇒ Object
29 30 31 |
# File 'lib/bio/db/kegg/enzyme.rb', line 29 def entry_id entry[/EC (\S+)/, 1] end |
#genes ⇒ Object
GENES
115 116 117 |
# File 'lib/bio/db/kegg/enzyme.rb', line 115 def genes lines_fetch('GENES') end |
#inhibitors ⇒ Object
INHIBITOR
90 91 92 |
# File 'lib/bio/db/kegg/enzyme.rb', line 90 def inhibitors field_fetch('INHIBITOR').split(/\s*;\s*/) end |
#iubmb_reactions ⇒ Object
66 67 68 |
# File 'lib/bio/db/kegg/enzyme.rb', line 66 def iubmb_reactions all_reac.sub(/;\s*\(other\).*/, '').split(/\s*;\s*/) end |
#kegg_reactions ⇒ Object
70 71 72 73 74 75 76 77 |
# File 'lib/bio/db/kegg/enzyme.rb', line 70 def kegg_reactions reac = all_reac if reac[/\(other\)/] reac.sub(/.*\(other\)\s*/, '').split(/\s*;\s*/) else [] end end |
#motifs ⇒ Object
MOTIF
125 126 127 |
# File 'lib/bio/db/kegg/enzyme.rb', line 125 def motifs lines_fetch('MOTIF') end |
#name ⇒ Object
42 43 44 |
# File 'lib/bio/db/kegg/enzyme.rb', line 42 def name names.first end |
#names ⇒ Object
NAME
38 39 40 |
# File 'lib/bio/db/kegg/enzyme.rb', line 38 def names field_fetch('NAME').split(/\s*;\s*/) end |
#obsolete? ⇒ Boolean
33 34 35 |
# File 'lib/bio/db/kegg/enzyme.rb', line 33 def obsolete? entry[/Obsolete/] ? true : false end |
#orthologs ⇒ Object
ORTHOLOGY
110 111 112 |
# File 'lib/bio/db/kegg/enzyme.rb', line 110 def orthologs lines_fetch('ORTHOLOGY') end |
#pathways ⇒ Object
PATHWAY
105 106 107 |
# File 'lib/bio/db/kegg/enzyme.rb', line 105 def pathways lines_fetch('PATHWAY') end |
#products ⇒ Object
PRODUCT
85 86 87 |
# File 'lib/bio/db/kegg/enzyme.rb', line 85 def products field_fetch('PRODUCT').split(/\s*;\s*/) end |
#reaction ⇒ Object
REACTION
57 58 59 |
# File 'lib/bio/db/kegg/enzyme.rb', line 57 def reaction field_fetch('REACTION') end |
#structures ⇒ Object
STRUCTURES
130 131 132 133 134 135 |
# File 'lib/bio/db/kegg/enzyme.rb', line 130 def structures unless @data['STRUCTURES'] @data['STRUCTURES'] = fetch('STRUCTURES').sub(/(PDB: )*/,'').split(/\s+/) end @data['STRUCTURES'] end |
#substrates ⇒ Object
SUBSTRATE
80 81 82 |
# File 'lib/bio/db/kegg/enzyme.rb', line 80 def substrates field_fetch('SUBSTRATE').split(/\s*;\s*/) end |
#sysname ⇒ Object
SYSNAME
52 53 54 |
# File 'lib/bio/db/kegg/enzyme.rb', line 52 def sysname field_fetch('SYSNAME') end |