ClusterI.pm

filter: Statementstmt 61.5% 8 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 28.5% 2 / 7 Podpod 100% 5 / 5 totaltotal 60.0% 15 / 25 CC 1 SCAR 5.4
CC
1
Cov
62%
display_id
2.0
description
2.0
size
2.0
CRAP 1.7
« Cluster/UniGeneI.pm ↑ Summary Cluster/FamilyI.pm »
1 #
2 # BioPerl module for Bio::ClusterI
3 #
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
5 #
6 # Cared for by Shawn Hoon <shawnh@fugu-sg.org>
7 #
8 # Copyright Shawn Hoon
9 #
10 # You may distribute this module under the same terms as perl itself
11  
12 # POD documentation - main docs before the code
13  
14 =head1 NAME
15  
16 Bio::ClusterI - Cluster Interface
17  
18 =head1 SYNOPSIS
19  
20 # see the implementations of this interface for details
21  
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");
26  
27  
28 =head1 DESCRIPTION
29  
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.
33  
34 =head1 FEEDBACK
35  
36 =head2 Mailing Lists
37  
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.
41  
42 bioperl-l@bioperl.org - General discussion
43 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
44  
45 =head2 Support
46  
47 Please direct usage questions or support issues to the mailing list:
48  
49 I<bioperl-l@bioperl.org>
50  
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.
55  
56 =head2 Reporting Bugs
57  
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:
61  
62 https://github.com/bioperl/bioperl-live/issues
63  
64 =head1 AUTHOR - Shawn Hoon
65  
66 Email shawnh@fugu-sg.org
67  
68 =head1 APPENDIX
69  
70 The rest of the documentation details each of the object methods.
71 Internal methods are usually preceded with a _
72  
73 =cut
74  
75  
76 # Let the code begin...
77  
78 package Bio::ClusterI;
79 10 $Bio::ClusterI::VERSION = '1.7.3';
80 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
81  
82  
83 10 ▶use base qw(Bio::Root::RootI);
Subroutine BEGIN: called CC=1 SCAR=0.0
84  
85 =head1 Implementation Specific Functions
86  
87 These functions are the ones that a specific implementation must
88 define.
89  
90 =head2 new
91  
92 We don't mandate but encourage implementors to support at least the
93 following named parameters upon object initialization.
94  
95 Argument Description
96 -------- -----------
97 -display_id the display ID or name for the cluster
98 -description the consensus description or name of the cluster
99 -members the array of objects belonging to the family
100  
101 =cut
102  
103 =head2 display_id
104  
105 Title : display_id
106 Usage :
107 Function: Get the display name or identifier for the cluster
108 Returns : a string
109 Args :
110  
111 =cut
112  
113 0 ▶sub display_id{
Subroutine display_id: not called CC=1 SCAR=6.9
Pod documented
114 0 shift->throw_not_implemented();
115 }
116  
117  
118 =head2 description
119  
120 Title : description
121 Usage : Bio::ClusterI->description("POLYUBIQUITIN")
122 Function: get/set for the consensus description of the cluster
123 Returns : the description string
124 Args : Optional the description string
125  
126 =cut
127  
128 0 ▶sub description{
Subroutine description: not called CC=1 SCAR=6.9
Pod documented
129 0 shift->throw_not_implemented();
130 }
131  
132 =head2 size
133  
134 Title : size
135 Usage : Bio::ClusterI->size();
136 Function: get/set for the size of the family,
137 calculated from the number of members
138 Returns : the size of the family
139 Args :
140  
141 =cut
142  
143 0 ▶sub size {
Subroutine size: not called CC=1 SCAR=6.9
Pod documented
144 0 shift->throw_not_implemented();
145 }
146  
147 =head2 cluster_score
148  
149 Title : cluster_score
150 Usage : $cluster ->cluster_score(100);
151 Function: get/set for cluster_score which
152 represent the score in which the clustering
153 algorithm assigns to this cluster.
154 Returns : a number
155  
156 =cut
157  
158 0 ▶sub cluster_score{
Subroutine cluster_score: not called CC=1 SCAR=6.9
Pod documented
159 0 shift->throw_not_implemented();
160 }
161  
162 =head2 get_members
163  
164 Title : get_members
165 Usage : Bio::ClusterI->get_members(($seq1, $seq2));
166 Function: retrieve the members of the family by some criteria, for
167 example :
168 $cluster->get_members(-species => 'homo sapiens');
169  
170 Will return all members if no criteria are provided.
171  
172 Returns : the array of members
173 Args :
174  
175 =cut
176  
177 0 ▶sub get_members {
Subroutine get_members: not called CC=1 SCAR=6.9
Pod documented
178 0 shift->throw_not_implemented();
179 }
180  
181 10 1;
« Cluster/UniGeneI.pm ↑ Summary Cluster/FamilyI.pm »