Webservice::InterMine::Simple::Template
my $template = $service->template("Gene_Pathways"); @rows = $query2->results_table(constraint1 => "eq", value1 => "ABC trans*"); for my $row (@rows) { print @$row; }
This is a basic representation of a query. It can handle straight-forward requests and result sets, but for anything more complicated, we recommend you look as the more fully featured Webservice::InterMine. This is especially true of large data sets, as this implementation has the potential to use lots of memory when receiving and processing results.
Create an object representing the template with the given name.
Returns the string representation of the template's results.
Parameters:
%template_parameters
Specification of the template parameters to use. These take the form:
Where ? represents a number that is used to group properties for each template constraint.
as => $format
Specifies the result format.
size => int
Specifies the maximum number of rows to return. A query can return up to 10,000,000 rows in a single page.
start => int
Specifies the index of the first result to return.
columnheaders => bool
Whether or not you want the first row to be the names of the output columns.
Performs very naïve parsing of returned tabular data and splits rows into array references based using a failure-prone "tab" split.
Takes the same arguments as results_with.
Returns a number representing the total number of rows in the result set.
Webservice::InterMine For a more powerful alternative
Alex Kalderimis <dev@intermine.org>
<dev@intermine.org>
Please report any bugs or feature requests to dev@intermine.org.
dev@intermine.org
You can find documentation for this module with the perldoc command.
perldoc Webservice::InterMine
You can also look for information at:
InterMine
http://www.intermine.org
Documentation
http://www.intermine.org/perlapi
Copyright 2006 - 2011 FlyMine, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'naïve'. Assuming UTF-8
To install Webservice::InterMine::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::InterMine::Simple
CPAN shell
perl -MCPAN -e shell install Webservice::InterMine::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.