If you are already familiar with installing CPAN modules, go-perl is no different from any other. If you aren’t, you may wish to experiment now.
Try typing the following:
perl -MCPAN -e shell
install GO::Parser
The following may also work:
cpan GO::Parser
If this is the first time using the CPAN installer, you will be asked a barrage of questions. You are best to answer with the defaults – you can always change this later.
If you do NOT have access to the system-wide perl directories on your system (these will typically be in /Library or /usr/local), then you should either get some help setting up CPAN for use with your system, OR you should follow an alternate protocol below. (You may wish to modify the value of PREFIX to ~ in the CPAN setup, as detailed in protocol III)
If you are on OS X you may need to do this:
sudo cpan GO::Parser
Providing you do have write-access to these directories, the above commands should hopefully go smoothly. When installing go-perl, you may be asked if you wish to also install Data::Stag and IO::String – you should answer yes
After this, you should be ready to use go-perl! The scripts should be in your path and the libraries should be in the standard place. You may wish to start by trying “map2slim” or “go2obo_xml”
There are certain applications that require additional third-party modules. All these are available from CPAN, and can be installed in the above manner. For example, if you try and use the go-filter-subset.pl script. to generate a PNG image of an ontology subgraph, the system will complain you do not have the module “GraphViz” installed. To install this, simply type:
perl -MCPAN -e shell
install GraphViz
Depending on what you use go-perl for, you may not ever need to install other CPAN modules