/usr/share/perl5/Bio/AnalysisParserI.pm is in libbio-perl-perl 1.6.924-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | #---------------------------------------------------------------
#
# BioPerl module Bio::AnalysisParserI
#
# Please direct questions and support issues to <bioperl-l@bioperl.org>
#
# Cared for by Steve Chervitz <sac@bioperl.org>
#
# Derived from Bio::SeqAnalysisParserI by Jason Stajich, Hilmar Lapp.
#
# You may distribute this module under the same terms as perl itself
#---------------------------------------------------------------
=head1 NAME
Bio::AnalysisParserI - Generic analysis output parser interface
=head1 SYNOPSIS
# get a AnalysisParserI somehow.
# Eventually, there may be an Bio::Factory::AnalysisParserFactory.
# For now a SearchIO object, an implementation of AnalysisParserI, can be created
# directly, as in the following:
my $parser = Bio::SearchIO->new(
'-file' => 'inputfile',
'-format' => 'blast');
while( my $result = $parser->next_result() ) {
print "Result: ", $result->analysis_method,
", Query: ", $result->query_name, "\n";
while( my $feature = $result->next_feature() ) {
print "Feature from ", $feature->start, " to ",
$feature->end, "\n";
}
}
=head1 DESCRIPTION
AnalysisParserI is a interface for describing generic analysis
result parsers. This module makes no assumption about the nature of
analysis being parsed, only that zero or more result sets can be
obtained from the input source.
This module was derived from Bio::SeqAnalysisParserI, the differences being
=over 4
=item 1. next_feature() was replaced with next_result().
Instead of flattening a stream containing potentially multiple
analysis results into a single set of features, AnalysisParserI
segments the stream in terms of analysis result sets
(Bio::AnalysisResultI objects). Each AnalysisResultI can then be
queried for its features (if any) as well as other information
about the result
=item 2. AnalysisParserI is a pure interface.
It does not inherit from Bio::Root::RootI and does not provide a new()
method. Implementations are free to choose how to implement it.
=back
=head2 Rationale (copied from Bio::SeqAnalysisParserI)
The concept behind this interface is to have a generic interface in sequence
annotation pipelines (as used e.g. in high-throughput automated
sequence annotation). This interface enables plug-and-play for new analysis
methods and their corresponding parsers without the necessity for modifying
the core of the annotation pipeline. In this concept the annotation pipeline
has to rely on only a list of methods for which to process the results, and a
factory from which it can obtain the corresponding parser implementing this
interface.
=head2 TODO
Create Bio::Factory::AnalysisParserFactoryI and
Bio::Factory::AnalysisParserFactory for interface and an implementation.
Note that this factory could return Bio::SearchIO-derived objects.
=head1 FEEDBACK
=head2 Mailing Lists
User feedback is an integral part of the evolution of this
and other Bioperl modules. Send your comments and suggestions preferably
to one of the Bioperl mailing lists.
Your participation is much appreciated.
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
=head2 Support
Please direct usage questions or support issues to the mailing list:
I<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.
=head2 Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
https://github.com/bioperl/bioperl-live/issues
=head1 AUTHOR - Steve Chervitz, Jason Stajich, Hilmar Lapp
Email sac@bioperl.org
Authors of Bio::SeqAnalysisParserI on which this module is based:
Email jason@bioperl.org
Email hlapp@gmx.net
=head1 COPYRIGHT
Copyright (c) 2001 Steve Chervitz. All Rights Reserved.
=head1 DISCLAIMER
This software is provided "as is" without warranty of any kind.
=head1 APPENDIX
The rest of the documentation details each of the object methods.
Internal methods are usually preceded with a _
=cut
package Bio::AnalysisParserI;
use strict;
use base qw(Bio::Root::RootI);
=head2 next_result
Title : next_result
Usage : $result = $obj->next_result();
Function: Returns the next result available from the input, or
undef if there are no more results.
Example :
Returns : A Bio::Search::Result::ResultI implementing object,
or undef if there are no more results.
Args : none
=cut
sub next_result {
my ($self);
$self->throw_not_implemented;
}
1;
__END__
NOTE (sac): My ten-month old son Russell added the following line.
It doesn't look like it will compile so I'm putting it here:
mt6 j7qa
|