v2012-02-19
Saccharomyces Genome Database provides S. cerevisiae data powered by InterMine 0.98
The Perl web service client library makes it easy to run queries in YeastMine directly from Perl programs.
You can use these modules to construct any query you could run from web interface and fetch the results
in a number of formats, including native Perl data structures and objects, and TSV/CSV strings.
Like all our code, it is open-source, coming licensed under the LGPL. For information on our
API, visit our wiki pages.
You should install the Perl webservice client library module to get started. You can install it directly from CPAN (the comprehensive Perl archive network). This is a public repository of thousands of modules. Using CPAN will ensure you get the latest version, and that your dependencies are automatically managed for you.
To install the InterMine Perl client library type the following command into a shell:
> sudo cpan Webservice::InterMine
(you may be asked to configure cpan here if you have not used it before). More detailed instructions regarding the installation of Perl modules can be found here.
On each Template Query page and the QueryBuilder there is a link to get Perl code to run that particular query using the web service API. Just click the link, save the generated Perl script in a file and execute it. You can use the generated code as a starting point for your own programs.
You can run the downloaded script by running the following command in a shell:
> perl path/to/downloaded/script.pl
If you get an error saying Cannot find Webservice::InterMine in @INC, or similar
then see 'Prerequisites' above.
Feel free to edit the script - these are designed to be spring-boards to help you get where you want to. See the Cookbook, which contains a set of short tutorial 'recipes' that demonstrate particular features of the Perl API, for ways to edit the scripts, and even extend their functionality.
For a good reference to writing programs in Perl, see here.
YeastMine is a collaboration between SGD and the Micklem team at the Cambridge Systems Biology Centre. YeastMine is funded by NHGRI grant HG004834.
The Saccharomyces Genome Database (SGDTM) project is supported by a P41 grant, National Resources [HG001315], from the National Human Genome Research Institute at the US National Institutes of Health. The SGDTM project is located in the Department of Genetics at the School of Medicine, Stanford University. The trademark on SGDTM is held by The Board of Trustees, Leland Stanford Junior University.
Database Copyright © 1997-2012 The Board of Trustees, Leland Stanford Junior University. Permission to use the information contained in this database was given by the researchers/institutes who contributed or published the information. Users of the database are solely responsible for compliance with any copyright restrictions, including those applying to the author abstracts. Documents from this server are provided "AS-IS" without any warranty, expressed or implied. How to cite SGD.