InterMine > Webservice-InterMine-1.0301 > Webservice::InterMine::Cookbook::List::Enrichment

Download:
Webservice-InterMine-1.0301.tar.gz

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source   Latest Release: Webservice-InterMine-1.0405

NAME ^

    Webservice::InterMine::Cookbook::List::Enrichment - List Enrichment

    =head1 SYNOPSIS

    use strict;
    use Webservice::InterMine;

    my $service = Webservice::InterMine->get_service('www.flymine.org/query');

    # Print out the names of the available enrichment widgets:
    for my $ew (grep {$_->{widgetType} eq 'enrichment'} $service->widgets) {
        printf "%s (%s)\n", $ew->{name}, $ew->{description};
    }

    # Get a reference to the list you want to analyse.
    my $list = $service->list('PL classIII');

    # Run the enrichment calculation
    my $results = $list->enrichment(
        widget => 'publication_enrichment',
        population => 'PL classII',
        maxp => 0.01
    );

    while (<$results>) {
        printf "%s (%s) - %.10f\n", $_->{identifier}, $_->{description}, $_->{'p-value'};
    }

DESCRIPTION ^

You can perfom enrichment calculations on lists that you have access to.

SEE ALSO ^

Webservice::InterMine::Service
Webservice::InterMine::List
Webservice::InterMine::ResultIterator
syntax highlighting: