Module: Bio::OldBioFetchEmulator::Query

Defined in:
lib/bio-old-biofetch-emulator/emulator.rb

Overview

class Client

Instance Method Summary collapse

Instance Method Details

#query(*args) ⇒ Object

Shortcut for using BioRuby’s BioFetch server. You can fetch an entry without creating an instance of BioFetch server. This method uses the default dbfetch server, which is bioruby.org/cgi-bin/biofetch.rb

Example:

puts Bio::Fetch.query('refseq','NM_123456')

Arguments:

  • database: name of database to query (see Bio::Fetch#databases to get list of supported databases)

  • id: single ID or ID list separated by commas or white space

  • style: [raw|html] (default = ‘raw’)

  • format: name of output format (see Bio::Fetch#formats)



378
379
380
# File 'lib/bio-old-biofetch-emulator/emulator.rb', line 378

def query(*args)
  Client.new.fetch(*args)
end