Class: Bio::KEGG::Keggtab::DB
Overview
Bio::KEGG::Keggtab::DB
Instance Attribute Summary collapse
-
#abbrev ⇒ Object
(also: #korg, #keggorg)
readonly
Short name for the database.
-
#aliases ⇒ Object
readonly
Array containing all alias names for the database.
-
#name ⇒ Object
readonly
Database name.
-
#path ⇒ Object
readonly
Database flat file path.
-
#type ⇒ Object
readonly
Definition type.
Instance Method Summary collapse
-
#initialize(db_name, db_type, db_path, db_abbrev) ⇒ DB
constructor
Create a container object for database definitions.
Constructor Details
#initialize(db_name, db_type, db_path, db_abbrev) ⇒ DB
Create a container object for database definitions.
73 74 75 76 77 78 79 |
# File 'lib/bio/db/kegg/keggtab.rb', line 73 def initialize(db_name, db_type, db_path, db_abbrev) @name = db_name @type = db_type @path = db_path @abbrev = db_abbrev @aliases = Array.new end |
Instance Attribute Details
#abbrev ⇒ Object (readonly) Also known as: korg, keggorg
Short name for the database. (e.g. ‘ec’, ‘hsa’, ‘eco’, …) korg and keggorg are alias for abbrev method.
88 89 90 |
# File 'lib/bio/db/kegg/keggtab.rb', line 88 def abbrev @abbrev end |
#aliases ⇒ Object (readonly)
Array containing all alias names for the database. (e.g. [“H.sapiens”, “hsa”], [“E.coli”, “eco”], …)
91 92 93 |
# File 'lib/bio/db/kegg/keggtab.rb', line 91 def aliases @aliases end |
#name ⇒ Object (readonly)
Database name. (e.g. ‘enzyme’, ‘h.sapies’, ‘e.coli’, …)
81 82 83 |
# File 'lib/bio/db/kegg/keggtab.rb', line 81 def name @name end |
#path ⇒ Object (readonly)
Database flat file path. (e.g. ‘$BIOROOT/db/kegg/genes’, …)
85 86 87 |
# File 'lib/bio/db/kegg/keggtab.rb', line 85 def path @path end |
#type ⇒ Object (readonly)
Definition type. (e.g. ‘enzyme’, ‘alias’, ‘genes’, …)
83 84 85 |
# File 'lib/bio/db/kegg/keggtab.rb', line 83 def type @type end |