2 # BioPerl module for Bio::ClusterI
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Shawn Hoon <shawnh@fugu-sg.org>
10 # You may distribute this module under the same terms as perl itself
12 # POD documentation - main docs before the code
16 Bio::ClusterI - Cluster Interface
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");
30 This interface is the basic structure for a cluster of bioperl objects.
31 In this case it is up to the implementer to check arguments
32 and initialize whatever new object the implementing class is designed for.
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
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.
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
62 https://github.com/bioperl/bioperl-live/issues
64 =head1 AUTHOR - Shawn Hoon
66 Email shawnh@fugu-sg.org
70 The rest of the documentation details each of the object methods.
71 Internal methods are usually preceded with a _
76 # Let the code begin...
78 package Bio
::ClusterI
;
82 use base
qw(Bio::Root::RootI);
84 =head1 Implementation Specific Functions
86 These functions are the ones that a specific implementation must
91 We don't mandate but encourage implementors to support at least the
92 following named parameters upon object initialization.
96 -display_id the display ID or name for the cluster
97 -description the consensus description or name of the cluster
98 -members the array of objects belonging to the family
106 Function: Get the display name or identifier for the cluster
113 shift->throw_not_implemented();
120 Usage : Bio::ClusterI->description("POLYUBIQUITIN")
121 Function: get/set for the consensus description of the cluster
122 Returns : the description string
123 Args : Optional the description string
128 shift->throw_not_implemented();
134 Usage : Bio::ClusterI->size();
135 Function: get/set for the size of the family,
136 calculated from the number of members
137 Returns : the size of the family
143 shift->throw_not_implemented();
148 Title : cluster_score
149 Usage : $cluster ->cluster_score(100);
150 Function: get/set for cluster_score which
151 represent the score in which the clustering
152 algorithm assigns to this cluster.
158 shift->throw_not_implemented();
164 Usage : Bio::ClusterI->get_members(($seq1, $seq2));
165 Function: retrieve the members of the family by some criteria, for
167 $cluster->get_members(-species => 'homo sapiens');
169 Will return all members if no criteria are provided.
171 Returns : the array of members
177 shift->throw_not_implemented();