3 # BioPerl module for Bio::ClusterI
5 # Cared for by Shawn Hoon <shawnh@fugu-sg.org>
9 # You may distribute this module under the same terms as perl itself
11 # POD documentation - main docs before the code
15 Bio::ClusterI - Cluster Interface
19 # see the implementations of this interface for details
21 my $cluster= $cluster->new(-description=>"POLYUBIQUITIN",
22 -members =>[$seq1,$seq2]);
23 my @members = $cluster->get_members();
24 my @sub_members = $cluster->get_members(-species=>"homo sapiens");
29 This interface is the basic structure for a cluster of bioperl objects.
30 In this case it is up to the implementer to check arguments
31 and initialize whatever new object the implementing class is designed for.
37 User feedback is an integral part of the evolution of this and other
38 Bioperl modules. Send your comments and suggestions preferably to
39 the Bioperl mailing list. Your participation is much appreciated.
41 bioperl-l@bioperl.org - General discussion
42 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
46 Report bugs to the Bioperl bug tracking system to help us keep track
47 of the bugs and their resolution. Bug reports can be submitted via the
50 http://bugzilla.open-bio.org/
52 =head1 AUTHOR - Shawn Hoon
54 Email shawnh@fugu-sg.org
58 The rest of the documentation details each of the object methods.
59 Internal methods are usually preceded with a _
64 # Let the code begin...
66 package Bio
::ClusterI
;
70 use base
qw(Bio::Root::RootI);
72 =head1 Implementation Specific Functions
74 These functions are the ones that a specific implementation must
79 We dont mandate but encourage implementors to support at least the
80 following named parameters upon object initialization.
84 -display_id the display ID or name for the cluster
85 -description the consensus description or name of the cluster
86 -members the array of objects belonging to the family
94 Function: Get the display name or identifier for the cluster
101 shift->throw_not_implemented();
108 Usage : Bio::ClusterI->description("POLYUBIQUITIN")
109 Function: get/set for the consensus description of the cluster
110 Returns : the description string
111 Args : Optional the description string
116 shift->throw_not_implemented();
122 Usage : Bio::ClusterI->size();
123 Function: get/set for the size of the family,
124 calculated from the number of members
125 Returns : the size of the family
131 shift->throw_not_implemented();
136 Title : cluster_score
137 Usage : $cluster ->cluster_score(100);
138 Function: get/set for cluster_score which
139 represent the score in which the clustering
140 algorithm assigns to this cluster.
146 shift->throw_not_implemented();
152 Usage : Bio::ClusterI->get_members(($seq1, $seq2));
153 Function: retrieve the members of the family by some criteria, for
155 $cluster->get_members(-species => 'homo sapiens');
157 Will return all members if no criteria are provided.
159 Returns : the array of members
165 shift->throw_not_implemented();