t/AlignIO/AlignIO.t: fix number of tests in plan (fixup c523e6bed866)
[bioperl-live.git] / Bio / Cluster / FamilyI.pm
blob4d38853a342f2e5a20aa85df03686d4d307cba47
2 # BioPerl module for Bio::Cluster::FamilyI
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Shawn Hoon <shawnh@fugu-sg.org>
8 # Copyright Shawn Hoon
10 # You may distribute this module under the same terms as perl itself
12 # POD documentation - main docs before the code
14 =head1 NAME
16 Bio::Cluster::FamilyI - Family Interface
18 =head1 SYNOPSIS
20 # see the implementations of this interface for details
22 my $cluster= $cluster->new(-description=>"POLYUBIQUITIN",
23 -members =>[$seq1,$seq2]);
24 my @members = $cluster->get_members();
25 my @sub_members = $cluster->get_members(-species=>"homo sapiens");
27 =head1 DESCRIPTION
29 This interface if for a Family object representing a family of
30 biological objects. A generic implementation for this may be
31 found a L<Bio::Cluster::Family>.
34 =head1 FEEDBACK
36 =head2 Mailing Lists
38 User feedback is an integral part of the evolution of this and other
39 Bioperl modules. Send your comments and suggestions preferably to
40 the Bioperl mailing list. Your participation is much appreciated.
42 bioperl-l@bioperl.org - General discussion
43 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
45 =head2 Support
47 Please direct usage questions or support issues to the mailing list:
49 I<bioperl-l@bioperl.org>
51 rather than to the module maintainer directly. Many experienced and
52 reponsive experts will be able look at the problem and quickly
53 address it. Please include a thorough description of the problem
54 with code and data examples if at all possible.
56 =head2 Reporting Bugs
58 Report bugs to the Bioperl bug tracking system to help us keep track
59 of the bugs and their resolution. Bug reports can be submitted via the
60 web:
62 https://github.com/bioperl/bioperl-live/issues
64 =head1 AUTHOR - Shawn Hoon
66 Email shawnh@fugu-sg.org
68 =head1 APPENDIX
70 The rest of the documentation details each of the object methods.
71 Internal methods are usually preceded with a _
73 =cut
76 package Bio::Cluster::FamilyI;
77 use strict;
80 use base qw(Bio::ClusterI);
82 =head2 new
84 We don't mandate but encourage implementors to support at least the
85 following named parameters upon object initialization.
87 Arguments Description
88 --------- -----------
89 -family_id the name of the family
90 -description the consensus description of the family
91 -annotation_score the confidence by which the consensus description is
92 representative of the family
93 -members the members belonging to the family
94 -alignment the multiple alignment of the members
96 =cut
99 =head2 family_id
101 Title : family_id
102 Usage : Bio::Cluster::FamilyI->family_id("znfp");
103 Function: get/set for the family id
104 Returns : the family id
105 Args : the family id
107 =cut
109 sub family_id{
110 shift->throw_not_implemented();
113 =head2 family_score
115 Title : family_score
116 Usage : Bio::Cluster::FamilyI->family_score(95);
117 Function: get/set for the score of algorithm used to generate
118 the family if present
119 Returns : the score
120 Args : the score
122 =cut
124 sub family_score {
125 shift->throw_not_implemented();
129 =head1 Methods inherited from L<Bio::ClusterI>
131 =cut
133 =head2 display_id
135 Title : display_id
136 Usage :
137 Function: Get the display name or identifier for the cluster
138 Returns : a string
139 Args :
141 =cut
143 =head2 get_members
145 Title : get_members
146 Usage : Bio::Cluster::FamilyI->get_members();
147 Function: get the members of the family
148 Returns : the array of members
149 Args : the array of members
151 =cut
153 =head2 description
155 Title : description
156 Usage : Bio::Cluster::FamilyI->description("Zinc Finger Protein");
157 Function: get/set for the description of the family
158 Returns : the description
159 Args : the description
161 =cut
164 =head2 size
166 Title : size
167 Usage : Bio::Cluster::FamilyI->size();
168 Function: get/set for the description of the family
169 Returns : size
170 Args :
172 =cut
174 =head2 cluster_score
176 Title : cluster_score
177 Usage : $cluster ->cluster_score(100);
178 Function: get/set for cluster_score which
179 represent the score in which the clustering
180 algorithm assigns to this cluster.
181 Returns : a number
183 =cut