Module: Chem::Type::KCFGlycanType
- Defined in:
- lib/chem/db/types/type_kcf_glycan.rb
Class Method Summary collapse
Class Method Details
.detect_file(file) ⇒ Object
7 8 9 |
# File 'lib/chem/db/types/type_kcf_glycan.rb', line 7 def self.detect_file file File.extname(file) == '.kcf' && /G\d+/.match(file) end |
.detect_type(type) ⇒ Object
16 17 18 |
# File 'lib/chem/db/types/type_kcf_glycan.rb', line 16 def self.detect_type type type == :kcf_glycan end |
.parse(file) ⇒ Object
11 12 13 14 |
# File 'lib/chem/db/types/type_kcf_glycan.rb', line 11 def self.parse file require 'chem/db/kcf_glycan' mol = Chem::KEGG::KCFGlycan.new File.open(file) end |