Class: Bio::KEGG::REACTION

Inherits:
Bio::KEGGDB show all
Defined in:
lib/bio/db/kegg/reaction.rb

Constant Summary collapse

DELIMITER =
RS = "\n///\n"
TAGSIZE =
12

Instance Method Summary collapse

Methods inherited from DB

#exists?, #fetch, #get, open, #tags

Constructor Details

#initialize(entry) ⇒ REACTION

Returns a new instance of REACTION.



20
21
22
# File 'lib/bio/db/kegg/reaction.rb', line 20

def initialize(entry)
  super(entry, TAGSIZE)
end

Instance Method Details

#definitionObject

DEFINITION



35
36
37
# File 'lib/bio/db/kegg/reaction.rb', line 35

def definition
  field_fetch('DEFINITION')
end

#entry_idObject

ENTRY



25
26
27
# File 'lib/bio/db/kegg/reaction.rb', line 25

def entry_id
  field_fetch('ENTRY')[/\S+/]
end

#enzymesObject

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

#equationObject

EQUATION



40
41
42
# File 'lib/bio/db/kegg/reaction.rb', line 40

def equation
  field_fetch('EQUATION')
end

#nameObject

NAME



30
31
32
# File 'lib/bio/db/kegg/reaction.rb', line 30

def name
  field_fetch('NAME') 
end

#pathwaysObject

PATHWAY



53
54
55
# File 'lib/bio/db/kegg/reaction.rb', line 53

def pathways
  lines_fetch('PATHWAY') 
end

#rpairsObject

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