# fetch.rb

Path: | lib/bio/io/fetch.rb
Last Update: | Thu Nov 19 15:47:02 +0000 2009

# bio/io/biofetch.rb - BioFetch access module

Copyright: | Copyright (C) 2002, 2005 Toshiaki Katayama <k@bioruby.org>, Copyright (C) 2006 Jan Aerts <jan.aerts@bbsrc.ac.uk>
License: | The Ruby License

     $Id:$

## DESCRIPTION

Using BioRuby BioFetch server

      br_server = Bio::Fetch.new()
      puts br_server.databases
      puts br_server.formats('embl')
      puts br_server.maxids

Using EBI BioFetch server

      ebi_server = Bio::Fetch.new('http://www.ebi.ac.uk/cgi-bin/dbfetch')
      puts ebi_server.fetch('embl', 'J00231', 'raw')
      puts ebi_server.fetch('embl', 'J00231', 'html')
      puts Bio::Fetch.query('genbank', 'J00231')
      puts Bio::Fetch.query('genbank', 'J00231', 'raw', 'fasta')

### Required files

uri cgi bio/command

[Validate]