Class | Bio::KEGG::MODULE |
In: |
lib/bio/db/kegg/module.rb
|
Parent: | KEGGDB |
DELIMITER | = | RS = "\n///\n" |
TAGSIZE | = | 12 |
Creates a new Bio::KEGG::MODULE object.
Arguments:
Returns: | Bio::KEGG::MODULE object |
# File lib/bio/db/kegg/module.rb, line 41 41: def initialize(entry) 42: super(entry, TAGSIZE) 43: end
Compounds described in the COMPOUND lines.
Returns: | Hash of compound ID and its definition |
# File lib/bio/db/kegg/module.rb, line 147 147: def compounds_as_hash 148: unless @compounds_as_hash 149: @compounds_as_hash = strings_as_hash(compounds_as_strings) 150: end 151: @compounds_as_hash 152: end
Orthologs described in the ORTHOLOGY lines.
Returns: | Hash of orthology ID and its definition |
# File lib/bio/db/kegg/module.rb, line 102 102: def orthologs_as_hash 103: unless @orthologs_as_hash 104: @orthologs_as_hash = strings_as_hash(orthologs_as_strings) 105: end 106: @orthologs_as_hash 107: end
Pathways described in the PATHWAY lines.
Returns: | Hash of pathway ID and its definition |
# File lib/bio/db/kegg/module.rb, line 83 83: def pathways_as_hash 84: unless @pathways_as_hash 85: @pathways_as_hash = strings_as_hash(pathways_as_strings) 86: end 87: @pathways_as_hash 88: end
Reactions described in the REACTION lines.
Returns: | Hash of reaction ID and its definition |
# File lib/bio/db/kegg/module.rb, line 128 128: def reactions_as_hash 129: unless @reactions_as_hash 130: @reactions_as_hash = strings_as_hash(reactions_as_strings) 131: end 132: @reactions_as_hash 133: end