Bio::T...actory(3pm)

๐Ÿ“ฆ
version 1.7.8 ยท 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

๐Ÿฆ‹ okay so bestie, welcome to Bio::Tools::Run::AnalysisFactory(3pm) ๐Ÿฆ‹

This is the manual page for Bio::Tools::Run::AnalysisFactory โ€” the Perl module that's basically a whole directory of analysis tools. Pull up a chair, grab a boba, we're doing this. ๐Ÿ’–


๐ŸŽ€ NAME ๐ŸŽ€

Bio::Tools::Run::AnalysisFactory โ€” a directory of analysis tools. That's the whole rรฉsumรฉ, and honestly? Iconic.


โœจ SYNOPSIS โœจ

Here's the whole vibe in code, no notes:

  # list all available analyses from the default location,
  # using a default (SOAP) access method
  use Bio::Tools::Run::AnalysisFactory;
  my $list = Bio::Tools::Run::AnalysisFactory->new();
                ->available_analyses;
  use Data::Dumper; print Dumper ($list);

  # ditto, but from a different location
  use Bio::Tools::Run::AnalysisFactory;
  my $list =
     Bio::Tools::Run::AnalysisFactory->new(-location => 'http://somewhere/something')
                ->available_analyses;

  # ...and using a different access method
  # (this example is not yet impelmented)
  use Bio::Tools::Run::AnalysisFactory;
  my $list =
     Bio::Tools::Run::AnalysisFactory->new(-location => 'http://somewhere/something',
                                           -access => 'novella')
                ->available_analyses;

  # list available categories of analyses
  use Bio::Tools::Run::AnalysisFactory;
  my $categories =
     Bio::Tools::Run::AnalysisFactory->new();
                ->available_categories;
  use Data::Dumper; print Dumper ($categories);

  # show all analyses group by categories
  use Bio::Tools::Run::AnalysisFactory;
  my $factory = Bio::Tools::Run::AnalysisFactory->new();
  foreach $cat ( @{ $factory->available_categories } ) {
    my @sublist = @{ $factory->available_analyses ($cat) };
    print "$cat:\n\t",
          join ("\n\t", @{ $factory->available_analyses ($cat) }),
          "\n";
  }

  # create an analysis object
  use Bio::Tools::Run::AnalysisFactory;
  $service = Bio::Tools::Run::AnalysisFactory->new();
                 ->create_analysis ('edit.seqret');
  $service->run (
                #...
                )->results;

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

okay so here's the tea, fr fr. ๐Ÿ“

  • The module represents a list of available analysis tools from a given location using a given access method. And on top of that, for any of the available analyses, it can create an object of type Bio::Tools::Run::Analysis. So it's giving directory and factory. Multitasking queen. ๐Ÿ‘‘
  • It's a higher-level abstraction whose main job is to load a 'real-work-doing' implementation. Which one actually gets used? Depends on the -access parameter. Same design as the Bio::Tools::Run::Analysis module โ€” consistent, we love a theme. โœจ
  • There is available a SOAP access to almost all EMBOSS applications, running at European Bioinformatics Institute. Yes, that's a whole thing you can just... use.
  • The documentation of all "public" methods are to be found in Bio::Factory::AnalysisI. Go read that one next, bestie.

๐Ÿ“ฌ FEEDBACK ๐Ÿ“ฌ

๐Ÿ’Œ Mailing Lists

User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated. (Yes, they mean you. ๐Ÿซถ)

  bioperl-l@bioperl.org                  - General discussion
  http://bioperl.org/wiki/Mailing_lists  - About the mailing lists

๐Ÿ†˜ Support

Please direct usage questions or support issues to the mailing list:

bioperl-l@bioperl.org

rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. (Basically: show your work, bestie, it helps the experts help you.)

๐Ÿ› Reporting Bugs

Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:

  http://redmine.open-bio.org/projects/bioperl/

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Martin Senger (martin.senger@gmail.com)


Copyright (c) 2003, Martin Senger and EMBL-EBI. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


๐Ÿ’€ DISCLAIMER ๐Ÿ’€

This software is provided "as is" without warranty of any kind.

No cap. That's literally what it says. ๐Ÿซ 

๐ŸŒˆ SEE ALSO ๐ŸŒˆ


๐Ÿงš APPENDIX ๐Ÿงš

Here is the rest of the object methods. Internal methods are preceded with an underscore _. (iykyk โ€” if it starts with an underscore, it's private business. ๐Ÿ™ˆ)

๐ŸŒŸ new

Usage   : my $factory =
            Bio::Tools::Run::AnalysisFactory->new(-access => 'soap',
                                                  -location => 'http://...');
Returns : a new Bio::Tools::Run::AnalysisFactory object representing a list
          of available analyses
Args    : There may be additional arguments which are specific
          to the access method (see methods 'new' or '_initialize'
          of the access-specific implementations (such as module
          Bio::Tools::Run::AnalysisFactory::soap for a SOAP-based access).

          The recognised and used arguments are:
            -access
            -location
            -httpproxy
            -timeout

It builds, populates and returns a new Bio::Tools::Run::AnalysisFactory object. That's how it's seen from the outside. But in fact, it builds, populates and returns a more specific lower-level object, for example a Bio::Tools::Run::AnalysisFactory::soap object โ€” which one it is, it depends on the -access parameter. Sneaky? No, just โœจarchitectureโœจ.

  • -access โ€” it indicates what lower-level module to load. Default is 'soap'. Other (but future) possibilities are:
  -access => 'novella'
  -access => 'local'
  • -location โ€” a location of the service. The contents is access-specific (see details in the lower-level implementation modules).

Default is http://www.ebi.ac.uk/soaplab/services (there are services running at European Bioinformatics Institute on top of most of EMBOSS analyses, and on some others).

  • -httpproxy โ€” in addition to the location parameter, you may need to specify also a location/URL of an HTTP proxy server (if your site requires one). The expected format is http://server:port. There is no default value. It is also an access-specific parameter which may not be used by all access methods.
  • -timeout โ€” for long(er) running jobs the HTTP connection may be time-outed. In order to avoid it (or, vice-versa, to call timeout sooner) you may specify timeout with the number of seconds the connection will be kept alive. Zero means to keep it alive forever. The default value is two minutes.

๐Ÿ”ง _load_access_module

Usage   : $class->_load_access_module ($access)
Returns : 1 on success, undef on failure
Args    : 'access' should contain the last part of the
          name of a module who does the real implementation

It does (in the run-time) a similar thing as

  require Bio::Tools::Run::AnalysisFactory::$access

It prints an error on STDERR if it fails to find and load the module (for example, because of the compilation errors in the module). So like, it will tell you, loudly. ๐Ÿ˜ญ

๐Ÿ”ฎ _guess_access

Usage   : $class->_guess_access ($rh_params)
Returns : string with a guessed access protocol (e.g. 'soap'),
          or undef if the guessing failed
Args    : 'rh_params' is a hash reference containing parameters given
          to the 'new' method.

It makes an expert guess what kind of access/transport protocol should be used to access the underlying analysis. The guess is based on the parameters in rh_params. Remember that this method is called only if there was no -access parameter which could tell directly what access method to use. (So it's the backup plan. The understudy. The main character when nobody else shows up. ๐Ÿ’…)

๐Ÿ“Œ VERSION and Revision

Usage   : print $Bio::Tools::Run::AnalysisFactory::VERSION;
          print $Bio::Tools::Run::AnalysisFactory::Revision;

and that's the whole page, bestie โ€” you ate that. ๐Ÿซถ

This was Bio::Tools::Run::AnalysisFactory(3pm), brought to you by perl v5.32.1, dated 2021-08-15. Go forth and list some analyses. ๐Ÿ’–โœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from