Method: Bio::KEGG::Keggtab#path
- Defined in:
- lib/bio/db/kegg/keggtab.rb
#path(db_abbrev) ⇒ Object
Returns an absolute path for the flat file database. (e.g. ‘/bio/db/kegg/genes’, …)
128 129 130 131 132 133 134 135 136 137 |
# File 'lib/bio/db/kegg/keggtab.rb', line 128 def path(db_abbrev) if @database[db_abbrev] file = @database[db_abbrev].name if @bioroot "#{@database[db_abbrev].path.sub(/\$BIOROOT/,@bioroot)}/#{file}" else "#{@database[db_abbrev].path}/#{file}" end end end |