All data sets in the Ensembl system are stored in relational databases (MySQL). For each of the Ensembl databases the project provides a specific Perl API. As Ensembl takes also advantage of code provided by the BioPerl project; installation of the BioPerl package is included in these instructions.
There are two ways of installing the Perl API. You can check it out using CVS (Concurrent Versioning System) if you have that available, you can download the files in gzipped TAR format from either our FTP site or our CVS website as detailed below:
Create an installation directory
$ cd $ mkdir src $ cd src
Download the API packages you need:
N.B. We recommend waiting until a few days after a release before downloading the new API (or re-downloading after a few days), as there may be post-release bug fixes added to the code.
Download BioPerl 1.2.3
Unpack the downloaded files. In the Unix command line, type:
$ tar xvfz filename.tar.gz
(substituting the name of each file). In Windows, you will need an unzipping utility such as 7-Zip.
Set up your environment
You have to tell Perl where to find the modules you just installed. You can do this by using the use lib clause in your script but if you want to make these modules available for all your scripts, the best way is to add them into the PERL5LIB environment variable.
Under bash, ksh, or any sh-derived shell:
PERL5LIB=${PERL5LIB}:${HOME}/src/bioperl-live PERL5LIB=${PERL5LIB}:${HOME}/src/ensembl/modules PERL5LIB=${PERL5LIB}:${HOME}/src/ensembl-compara/modules PERL5LIB=${PERL5LIB}:${HOME}/src/ensembl-variation/modules PERL5LIB=${PERL5LIB}:${HOME}/src/ensembl-functgenomics/modules export PERL5LIB
Under csh or tcsh:
setenv PERL5LIB ${PERL5LIB}:${HOME}/src/bioperl-live setenv PERL5LIB ${PERL5LIB}:${HOME}/src/ensembl/modules setenv PERL5LIB ${PERL5LIB}:${HOME}/src/ensembl-compara/modules setenv PERL5LIB ${PERL5LIB}:${HOME}/src/ensembl-variation/modules setenv PERL5LIB ${PERL5LIB}:${HOME}/src/ensembl-functgenomics/modules
Under Windows (assuming you installed the APIs in C:\src\):
set PERL5LIB=C:\src\bioperl-live;C:\src\ensembl\modules;C:\src\ensembl-compara\modules;C:\src\ensembl-variation\modules;C:\src\ensembl-functgenomics\modules
Additional modules for accessing GO data may be found here: