Class | Bio::KEGG::ORTHOLOGY |
In: |
lib/bio/db/kegg/orthology.rb
|
Parent: | KEGGDB |
DELIMITER | = | RS = "\n///\n" |
TAGSIZE | = | 12 |
Reads a flat file format entry of the KO database.
# File lib/bio/db/kegg/orthology.rb, line 42 42: def initialize(entry) 43: super(entry, TAGSIZE) 44: end
Returns DEFINITION field of the entry.
# File lib/bio/db/kegg/orthology.rb, line 62 62: def definition 63: field_fetch('DEFINITION') 64: end
Returns ID of the entry.
# File lib/bio/db/kegg/orthology.rb, line 47 47: def entry_id 48: field_fetch('ENTRY')[/\S+/] 49: end
Returns CLASS field of the entry.
# File lib/bio/db/kegg/orthology.rb, line 67 67: def keggclass 68: field_fetch('CLASS') 69: end
Returns an Array of biological classes in CLASS field.
# File lib/bio/db/kegg/orthology.rb, line 72 72: def keggclasses 73: keggclass.gsub(/ \[[^\]]+/, '').split(/\] ?/) 74: end
Returns NAME field of the entry.
# File lib/bio/db/kegg/orthology.rb, line 52 52: def name 53: field_fetch('NAME') 54: end