Webservice::InterMine::Cookbook::Recipe1 - Using List Enrichment
use Webservice::InterMine; my $service = get_service("www.flymine.org/query", $MY_TOKEN); # Being unamed, this list will be deleted when the process exits. my $list = $service->new_list(type => "Gene", content => "some/file/with/identifiers.txt"); # enrichment_results is a Webservice::InterMine::ResultIterator my $enrichment_results = $list->enrichment( widget => "go_enrichment", maxp => 0.1, correction => "Holm-Bonferroni" ); # Iterate over each result while (<$it>) { my $go_term = $_->{"description"}; my $p_value = $_->{"p-value"}; print "$go_term\t$p_value\n"; }
List enrichment analysis results can be accessed through the web service API from version 8+. Enrichment analysis allows statistical analysis of which features can be said to most strongly correlate with a collection of items in a list, such as GO terms, pathways, and other relationships.
Webservice::InterMine::List
Alex Kalderimis <perldev@flymine.org>
Copyright 2004-2010 by Webservice::InterMine
http://www.intermine.org
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Webservice::InterMine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::InterMine
CPAN shell
perl -MCPAN -e shell install Webservice::InterMine
For more information on module installation, please visit the detailed CPAN module installation guide.