Class: Bio::KEGG::REACTION
- Inherits:
-
Bio::KEGGDB
- Object
- DB
- NCBIDB
- Bio::KEGGDB
- Bio::KEGG::REACTION
- Defined in:
- lib/bio/db/kegg/reaction.rb
Constant Summary collapse
- DELIMITER =
RS = "\n///\n"
- TAGSIZE =
12
Instance Method Summary collapse
-
#definition ⇒ Object
DEFINITION.
-
#entry_id ⇒ Object
ENTRY.
-
#enzymes ⇒ Object
ENZYME.
-
#equation ⇒ Object
EQUATION.
-
#initialize(entry) ⇒ REACTION
constructor
A new instance of REACTION.
-
#name ⇒ Object
NAME.
-
#pathways ⇒ Object
PATHWAY.
-
#rpairs ⇒ Object
RPAIR.
Methods inherited from DB
#exists?, #fetch, #get, open, #tags
Constructor Details
Instance Method Details
#definition ⇒ Object
DEFINITION
35 36 37 |
# File 'lib/bio/db/kegg/reaction.rb', line 35 def definition field_fetch('DEFINITION') end |
#entry_id ⇒ Object
ENTRY
25 26 27 |
# File 'lib/bio/db/kegg/reaction.rb', line 25 def entry_id field_fetch('ENTRY')[/\S+/] end |
#enzymes ⇒ Object
ENZYME
58 59 60 61 62 63 |
# File 'lib/bio/db/kegg/reaction.rb', line 58 def enzymes unless @data['ENZYME'] @data['ENZYME'] = fetch('ENZYME').scan(/\S+/) end @data['ENZYME'] end |
#equation ⇒ Object
EQUATION
40 41 42 |
# File 'lib/bio/db/kegg/reaction.rb', line 40 def equation field_fetch('EQUATION') end |
#name ⇒ Object
NAME
30 31 32 |
# File 'lib/bio/db/kegg/reaction.rb', line 30 def name field_fetch('NAME') end |
#pathways ⇒ Object
PATHWAY
53 54 55 |
# File 'lib/bio/db/kegg/reaction.rb', line 53 def pathways lines_fetch('PATHWAY') end |
#rpairs ⇒ Object
RPAIR
45 46 47 48 49 50 |
# File 'lib/bio/db/kegg/reaction.rb', line 45 def rpairs unless @data['RPAIR'] @data['RPAIR'] = fetch('RPAIR').split(/\s+/) end @data['RPAIR'] end |