Class | Bio::KEGG::REACTION |
In: |
lib/bio/db/kegg/reaction.rb
|
Parent: | KEGGDB |
DELIMITER | = | RS = "\n///\n" |
TAGSIZE | = | 12 |
Creates a new Bio::KEGG::REACTION object.
Arguments:
Returns: | Bio::KEGG::REACTION object |
# File lib/bio/db/kegg/reaction.rb, line 38 38: def initialize(entry) 39: super(entry, TAGSIZE) 40: end
Returns a Hash of the orthology ID and definition in ORTHOLOGY field.
# File lib/bio/db/kegg/reaction.rb, line 30 30: def orthologs_as_hash; super; end
KEGG RPAIR (ReactantPair) information, described in the RPAIR lines. Returns a hash of RPair IDs and [ name, type ] informations, for example,
{ "RP12733" => [ "C00022_C00900", "trans" ], "RP05698" => [ "C00011_C00022", "leave" ], "RP00440" => [ "C00022_C00900", "main" ] }
Returns: | Hash |
# File lib/bio/db/kegg/reaction.rb, line 85 85: def rpairs_as_hash 86: unless defined? @rpairs_as_hash 87: rps = {} 88: rpairs_as_strings.each do |line| 89: namespace, entry_id, name, rptype = line.split(/\s+/) 90: rps[entry_id] = [ name, rptype ] 91: end 92: @rpairs_as_hash = rps 93: end 94: @rpairs_as_hash 95: end