You must have the following installed in order to run this script:
2) the perl modules LWP and Cache::FileCache
3) a web server (Apache recommended)
To install this script, copy it into the web servers cgi-bin
directory. You might want to shorten its name; dbfetch is
There are several constants located at the top of the script that you
may want to adjust. These are:
This is the location on the filesystem where the cached files will be
located. The default is /usr/tmp/dbfetch_cache.
This is the maximum size that the cache can grow to. When the cache
exceeds this size older entries will be deleted automatically. The
default setting is 100,000,000 bytes (100 MB).
Entries that havent been accessed in this length of time will be
removed from the cache. The default is 1 week.
This constant specifies how often the cache will be purged for older
entries. The default is 1 hour.
To see if this script is performing as expected, you may test it with
my $db = Bio::DB::BioFetch->new(-baseaddress=>http://localhost/cgi-bin/dbfetch,
my $seq = $db->get_Seq_by_id(DDU63596);
This should print out a DNA sequence.