| 1 | # | ||
| 2 | # BioPerl module for Bio::Cluster::FamilyI | ||
| 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::Cluster::FamilyI - Family 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 | =head1 DESCRIPTION | ||
| 28 | |||
| 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>. | ||
| 32 | |||
| 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 | package Bio::Cluster::FamilyI; | ||
| 77 | 3 | $Bio::Cluster::FamilyI::VERSION = '1.7.3'; | |
| 78 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 79 | |||
| 80 | |||
| 81 | 3 | ▶ | use base qw(Bio::ClusterI); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 82 | |||
| 83 | =head2 new | ||
| 84 | |||
| 85 | We don't mandate but encourage implementors to support at least the | ||
| 86 | following named parameters upon object initialization. | ||
| 87 | |||
| 88 | Arguments Description | ||
| 89 | --------- ----------- | ||
| 90 | -family_id the name of the family | ||
| 91 | -description the consensus description of the family | ||
| 92 | -annotation_score the confidence by which the consensus description is | ||
| 93 | representative of the family | ||
| 94 | -members the members belonging to the family | ||
| 95 | -alignment the multiple alignment of the members | ||
| 96 | |||
| 97 | =cut | ||
| 98 | |||
| 99 | |||
| 100 | =head2 family_id | ||
| 101 | |||
| 102 | Title : family_id | ||
| 103 | Usage : Bio::Cluster::FamilyI->family_id("znfp"); | ||
| 104 | Function: get/set for the family id | ||
| 105 | Returns : the family id | ||
| 106 | Args : the family id | ||
| 107 | |||
| 108 | =cut | ||
| 109 | |||
| 110 | 0 | ▶ | sub family_id{ |
|
Subroutine
family_id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 111 | 0 | shift->throw_not_implemented(); | |
| 112 | } | ||
| 113 | |||
| 114 | =head2 family_score | ||
| 115 | |||
| 116 | Title : family_score | ||
| 117 | Usage : Bio::Cluster::FamilyI->family_score(95); | ||
| 118 | Function: get/set for the score of algorithm used to generate | ||
| 119 | the family if present | ||
| 120 | Returns : the score | ||
| 121 | Args : the score | ||
| 122 | |||
| 123 | =cut | ||
| 124 | |||
| 125 | 0 | ▶ | sub family_score { |
|
Subroutine
family_score: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 126 | 0 | shift->throw_not_implemented(); | |
| 127 | } | ||
| 128 | |||
| 129 | |||
| 130 | =head1 Methods inherited from L<Bio::ClusterI> | ||
| 131 | |||
| 132 | =cut | ||
| 133 | |||
| 134 | =head2 display_id | ||
| 135 | |||
| 136 | Title : display_id | ||
| 137 | Usage : | ||
| 138 | Function: Get the display name or identifier for the cluster | ||
| 139 | Returns : a string | ||
| 140 | Args : | ||
| 141 | |||
| 142 | =cut | ||
| 143 | |||
| 144 | =head2 get_members | ||
| 145 | |||
| 146 | Title : get_members | ||
| 147 | Usage : Bio::Cluster::FamilyI->get_members(); | ||
| 148 | Function: get the members of the family | ||
| 149 | Returns : the array of members | ||
| 150 | Args : the array of members | ||
| 151 | |||
| 152 | =cut | ||
| 153 | |||
| 154 | =head2 description | ||
| 155 | |||
| 156 | Title : description | ||
| 157 | Usage : Bio::Cluster::FamilyI->description("Zinc Finger Protein"); | ||
| 158 | Function: get/set for the description of the family | ||
| 159 | Returns : the description | ||
| 160 | Args : the description | ||
| 161 | |||
| 162 | =cut | ||
| 163 | |||
| 164 | |||
| 165 | =head2 size | ||
| 166 | |||
| 167 | Title : size | ||
| 168 | Usage : Bio::Cluster::FamilyI->size(); | ||
| 169 | Function: get/set for the description of the family | ||
| 170 | Returns : size | ||
| 171 | Args : | ||
| 172 | |||
| 173 | =cut | ||
| 174 | |||
| 175 | =head2 cluster_score | ||
| 176 | |||
| 177 | Title : cluster_score | ||
| 178 | Usage : $cluster ->cluster_score(100); | ||
| 179 | Function: get/set for cluster_score which | ||
| 180 | represent the score in which the clustering | ||
| 181 | algorithm assigns to this cluster. | ||
| 182 | Returns : a number | ||
| 183 | |||
| 184 | =cut | ||
| 185 | |||
| 186 | 3 | 1; | |