Method: Bio::Fetch.query

Defined in:
lib/bio/io/fetch.rb

.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_12345')

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)



125
126
127
# File 'lib/bio/io/fetch.rb', line 125

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