module Bio::KEGG::Common::DblinksAsHash
The module providing #dblinks_as_hash methods.
Bio::KEGG::* internal use only.
Public Instance Methods
dblinks_as_hash()
click to toggle source
Returns a Hash of the DB name and an Array of entry IDs in DBLINKS field.
# File lib/bio/db/kegg/common.rb, line 96 def dblinks_as_hash unless defined? @dblinks_as_hash hash = {} dblinks_as_strings.each do |line| db, ids = line.split(/\:\s*/, 2) list = ids.split(/\s+/) hash[db] = list end @dblinks_as_hash = hash end @dblinks_as_hash end