Module: Chem::Type::KeggReactionMapType
- Defined in:
- lib/chem/db/types/type_kegg.rb
Class Method Summary collapse
Class Method Details
.detect_file(filename) ⇒ Object
34 35 36 |
# File 'lib/chem/db/types/type_kegg.rb', line 34 def self.detect_file filename return true if File.basename(filename) == 'reaction_mapformula.lst' end |
.detect_type(type) ⇒ Object
43 44 45 |
# File 'lib/chem/db/types/type_kegg.rb', line 43 def self.detect_type type type == :kegg_rxn_map end |
.parse(file) ⇒ Object
38 39 40 41 |
# File 'lib/chem/db/types/type_kegg.rb', line 38 def self.parse file require 'chem/db/kegg' Chem::KEGG::KeggReactionMapParser.new file end |