Class: Chem::KEGG::KEGGReaction

Inherits:
Object
  • Object
show all
Includes:
Reaction
Defined in:
lib/chem/db/kegg.rb

Overview

Duplication definition!

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Reaction

#to_mdl_rxn

Constructor Details

#initializeKEGGReaction

Returns a new instance of KEGGReaction.



181
182
183
184
# File 'lib/chem/db/kegg.rb', line 181

def initialize
  @ecs = []
  @compounds = []
end

Instance Attribute Details

#compoundsObject

Returns the value of attribute compounds.



180
181
182
# File 'lib/chem/db/kegg.rb', line 180

def compounds
  @compounds
end

#directionObject

Returns the value of attribute direction.



180
181
182
# File 'lib/chem/db/kegg.rb', line 180

def direction
  @direction
end

#ecsObject

Returns the value of attribute ecs.



180
181
182
# File 'lib/chem/db/kegg.rb', line 180

def ecs
  @ecs
end

#entryObject

Returns the value of attribute entry.



180
181
182
# File 'lib/chem/db/kegg.rb', line 180

def entry
  @entry
end

#nameObject

Returns the value of attribute name.



180
181
182
# File 'lib/chem/db/kegg.rb', line 180

def name
  @name
end

Instance Method Details

#kegg=(kegg) ⇒ Object



186
187
188
# File 'lib/chem/db/kegg.rb', line 186

def kegg= kegg
  @kegg = kegg
end

#map_formulaObject



190
191
192
193
# File 'lib/chem/db/kegg.rb', line 190

def map_formula
  return nil unless @kegg.map_formula[@entry]
  @kegg.map_formula[@entry].compounds
end