1
# $Id: AnalysisFactory.pm,v 1.10 2006/07/04 22:23:31 mauricio Exp $
1
# $Id: AnalysisFactory.pm 15564 2009-02-24 01:59:09Z cjfields $
3
3
# BioPerl module for Bio::Tools::Run::AnalysisFactory
5
# Please direct questions and support issues to <bioperl-l@bioperl.org>
5
7
# Cared for by Martin Senger <martin.senger@gmail.com>
6
8
# For copyright and disclaimer see below.
17
19
# list all available analyses from the default location,
18
20
# using a default (SOAP) access method
19
21
use Bio::Tools::Run::AnalysisFactory;
20
my $list = new Bio::Tools::Run::AnalysisFactory
22
my $list = Bio::Tools::Run::AnalysisFactory->new();
21
23
->available_analyses;
22
24
use Data::Dumper; print Dumper ($list);
24
26
# ditto, but from a different location
25
27
use Bio::Tools::Run::AnalysisFactory;
27
new Bio::Tools::Run::AnalysisFactory (-location => 'http://somewhere/something')
29
Bio::Tools::Run::AnalysisFactory->new(-location => 'http://somewhere/something')
28
30
->available_analyses;
30
32
# ...and using a different access method
31
33
# (this example is not yet impelmented)
32
34
use Bio::Tools::Run::AnalysisFactory;
34
new Bio::Tools::Run::AnalysisFactory (-location => 'http://somewhere/something',
36
Bio::Tools::Run::AnalysisFactory->new(-location => 'http://somewhere/something',
35
37
-access => 'novella')
36
38
->available_analyses;
38
40
# list available categories of analyses
39
41
use Bio::Tools::Run::AnalysisFactory;
41
new Bio::Tools::Run::AnalysisFactory
43
Bio::Tools::Run::AnalysisFactory->new();
42
44
->available_categories;
43
45
use Data::Dumper; print Dumper ($categories);
45
47
# show all analyses group by categories
46
48
use Bio::Tools::Run::AnalysisFactory;
47
my $factory = new Bio::Tools::Run::AnalysisFactory;
49
my $factory = Bio::Tools::Run::AnalysisFactory->new();
48
50
foreach $cat ( @{ $factory->available_categories } ) {
49
51
my @sublist = @{ $factory->available_analyses ($cat) };
55
57
# create an analysis object
56
58
use Bio::Tools::Run::AnalysisFactory;
57
$service = new Bio::Tools::Run::AnalysisFactory
59
$service = Bio::Tools::Run::AnalysisFactory->new();
58
60
->create_analysis ('edit.seqret');
88
90
bioperl-l@bioperl.org - General discussion
89
91
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
95
Please direct usage questions or support issues to the mailing list:
97
L<bioperl-l@bioperl.org>
99
rather than to the module maintainer directly. Many experienced and
100
reponsive experts will be able look at the problem and quickly
101
address it. Please include a thorough description of the problem
102
with code and data examples if at all possible.
91
104
=head2 Reporting Bugs
93
106
Report bugs to the Bioperl bug tracking system to help us keep track
158
171
Usage : my $factory =
159
new Bio::Tools::Run::AnalysisFactory (-access => 'soap',
172
Bio::Tools::Run::AnalysisFactory->new(-access => 'soap',
160
173
-location => 'http://...');
161
174
Returns : a new Bio::Tools::Run::AnalysisFactory object representing a list
162
175
of available analyses