Merge branch 'master' of git@github.com:bioperl/bioperl-live
[bioperl-live.git] / Bio / Align / StatisticsI.pm
blobd0be9a9efcf2f2252044506cd74c74961186cf21
1 # $Id$
3 # BioPerl module for Bio::Align::StatisticsI
5 # Please direct questions and support issues to <bioperl-l@bioperl.org>
7 # Cared for by Jason Stajich <jason@bioperl.org>
9 # Copyright Jason Stajich
11 # You may distribute this module under the same terms as perl itself
13 # POD documentation - main docs before the code
15 =head1 NAME
17 Bio::Align::StatisticsI - Calculate some statistics for an alignment
19 =head1 SYNOPSIS
21 Give standard usage here
23 =head1 DESCRIPTION
25 Describe the interface here
27 =head1 FEEDBACK
29 =head2 Mailing Lists
31 User feedback is an integral part of the evolution of this and other
32 Bioperl modules. Send your comments and suggestions preferably to
33 the Bioperl mailing list. Your participation is much appreciated.
35 bioperl-l@bioperl.org - General discussion
36 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
38 =head2 Support
40 Please direct usage questions or support issues to the mailing list:
42 I<bioperl-l@bioperl.org>
44 rather than to the module maintainer directly. Many experienced and
45 reponsive experts will be able look at the problem and quickly
46 address it. Please include a thorough description of the problem
47 with code and data examples if at all possible.
49 =head2 Reporting Bugs
51 Report bugs to the Bioperl bug tracking system to help us keep track
52 of the bugs and their resolution. Bug reports can be submitted via the
53 web:
55 http://bugzilla.open-bio.org/
57 =head1 AUTHOR - Jason Stajich
59 Email jason@bioperl.org
61 =head1 APPENDIX
63 The rest of the documentation details each of the object methods.
64 Internal methods are usually preceded with a _
66 =cut
69 # Let the code begin...
72 package Bio::Align::StatisticsI;
73 use strict;
76 use base qw(Bio::Root::RootI);
78 =head2 distance
80 Title : distance
81 Usage : my $distance_mat = $stats->distance(-align => $aln,
82 -method => $method);
83 Function: Calculates a distance matrix for all pairwise distances of
84 sequences in an alignment.
85 Returns : Array ref
86 Args : -align => Bio::Align::AlignI object
87 -method => String specifying specific distance method
88 (implementing class may assume a default)
90 =cut
92 sub distance{
93 my ($self,@args) = @_;
94 $self->throw_not_implemented();
97 =head2 available_distance_methods
99 Title : available_distance_methods
100 Usage : my @methods = $stats->available_distance_methods();
101 Function: Enumerates the possible distance methods
102 Returns : Array of strings
103 Args : none
106 =cut
108 sub available_distance_methods{
109 my ($self,@args) = @_;
110 $self->throw_not_implemented();