module Bio::OldBioFetchEmulator::Query
Public Instance Methods
query(*args)
click to toggle source
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)
# File lib/bio-old-biofetch-emulator/emulator.rb, line 378 def query(*args) Client.new.fetch(*args) end