Mercurial > repos > mahtabm > ensembl
comparison variant_effect_predictor/Bio/Cluster/FamilyI.pm @ 0:1f6dce3d34e0
Uploaded
| author | mahtabm |
|---|---|
| date | Thu, 11 Apr 2013 02:01:53 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:1f6dce3d34e0 |
|---|---|
| 1 # | |
| 2 # BioPerl module for Bio::Cluster::FamilyI | |
| 3 # | |
| 4 # Cared for by Shawn Hoon <shawnh@fugu-sg.org> | |
| 5 # | |
| 6 # Copyright Shawn Hoon | |
| 7 # | |
| 8 # You may distribute this module under the same terms as perl itself | |
| 9 | |
| 10 # POD documentation - main docs before the code | |
| 11 | |
| 12 =head1 NAME | |
| 13 | |
| 14 Bio::Cluster::FamilyI - Family Interface | |
| 15 | |
| 16 =head1 SYNOPSIS | |
| 17 | |
| 18 # see the implementations of this interface for details but | |
| 19 # basically | |
| 20 | |
| 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"); | |
| 25 | |
| 26 | |
| 27 | |
| 28 =head1 DESCRIPTION | |
| 29 | |
| 30 This interface if for a Family object representing a family of | |
| 31 biological objects. A generic implementation for this may be | |
| 32 found a Bio::Cluster::Family. | |
| 33 | |
| 34 | |
| 35 =head1 FEEDBACK | |
| 36 | |
| 37 =head2 Mailing Lists | |
| 38 | |
| 39 User feedback is an integral part of the evolution of this and other | |
| 40 Bioperl modules. Send your comments and suggestions preferably to | |
| 41 the Bioperl mailing list. Your participation is much appreciated. | |
| 42 | |
| 43 bioperl-l@bioperl.org - General discussion | |
| 44 http://bioperl.org/MailList.shtml - About the mailing lists | |
| 45 | |
| 46 =head2 Reporting Bugs | |
| 47 | |
| 48 Report bugs to the Bioperl bug tracking system to help us keep track | |
| 49 of the bugs and their resolution. Bug reports can be submitted via | |
| 50 email or the web: | |
| 51 | |
| 52 bioperl-bugs@bioperl.org | |
| 53 http://bugzilla.bioperl.org/ | |
| 54 | |
| 55 =head1 AUTHOR - Shawn Hoon | |
| 56 | |
| 57 Email shawnh@fugu-sg.org | |
| 58 | |
| 59 | |
| 60 =head1 CONTRIBUTORS | |
| 61 | |
| 62 Additional contributors names and emails here | |
| 63 | |
| 64 =head1 APPENDIX | |
| 65 | |
| 66 The rest of the documentation details each of the object methods. | |
| 67 Internal methods are usually preceded with a _ | |
| 68 | |
| 69 =cut | |
| 70 | |
| 71 | |
| 72 package Bio::Cluster::FamilyI; | |
| 73 use vars qw(@ISA); | |
| 74 use strict; | |
| 75 | |
| 76 use Bio::ClusterI; | |
| 77 | |
| 78 @ISA = qw(Bio::ClusterI); | |
| 79 | |
| 80 =head2 new | |
| 81 | |
| 82 We dont mandate but encourage implementors to support at least the | |
| 83 following named parameters upon object initialization. | |
| 84 | |
| 85 Arguments Description | |
| 86 --------- ----------- | |
| 87 -family_id the name of the family | |
| 88 -description the consensus description of the family | |
| 89 -annotation_score the confidence by which the consensus description is | |
| 90 representative of the family | |
| 91 -members the members belonging to the family | |
| 92 -alignment the multiple alignment of the members | |
| 93 | |
| 94 =cut | |
| 95 | |
| 96 | |
| 97 =head2 family_id | |
| 98 | |
| 99 Title : family_id | |
| 100 Usage : Bio::Cluster::FamilyI->family_id("znfp"); | |
| 101 Function: get/set for the family id | |
| 102 Returns : the family id | |
| 103 Args : the family id | |
| 104 | |
| 105 =cut | |
| 106 | |
| 107 sub family_id{ | |
| 108 shift->throw_not_implemented(); | |
| 109 } | |
| 110 | |
| 111 =head2 family_score | |
| 112 | |
| 113 Title : family_score | |
| 114 Usage : Bio::Cluster::FamilyI->family_score(95); | |
| 115 Function: get/set for the score of algorithm used to generate | |
| 116 the family if present | |
| 117 Returns : the score | |
| 118 Args : the score | |
| 119 | |
| 120 =cut | |
| 121 | |
| 122 sub family_score { | |
| 123 shift->throw_not_implemented(); | |
| 124 } | |
| 125 | |
| 126 | |
| 127 =head1 Methods inherited from L<Bio::ClusterI> | |
| 128 | |
| 129 =cut | |
| 130 | |
| 131 =head2 display_id | |
| 132 | |
| 133 Title : display_id | |
| 134 Usage : | |
| 135 Function: Get the display name or identifier for the cluster | |
| 136 Returns : a string | |
| 137 Args : | |
| 138 | |
| 139 =cut | |
| 140 | |
| 141 =head2 get_members | |
| 142 | |
| 143 Title : get_members | |
| 144 Usage : Bio::Cluster::FamilyI->get_members(); | |
| 145 Function: get the members of the family | |
| 146 Returns : the array of members | |
| 147 Args : the array of members | |
| 148 | |
| 149 =cut | |
| 150 | |
| 151 =head2 description | |
| 152 | |
| 153 Title : description | |
| 154 Usage : Bio::Cluster::FamilyI->description("Zinc Finger Protein"); | |
| 155 Function: get/set for the description of the family | |
| 156 Returns : the description | |
| 157 Args : the description | |
| 158 | |
| 159 =cut | |
| 160 | |
| 161 | |
| 162 =head2 size | |
| 163 | |
| 164 Title : size | |
| 165 Usage : Bio::Cluster::FamilyI->size(); | |
| 166 Function: get/set for the description of the family | |
| 167 Returns : size | |
| 168 Args : | |
| 169 | |
| 170 =cut | |
| 171 | |
| 172 =head2 cluster_score | |
| 173 | |
| 174 Title : cluster_score | |
| 175 Usage : $cluster ->cluster_score(100); | |
| 176 Function: get/set for cluster_score which | |
| 177 represent the score in which the clustering | |
| 178 algorithm assigns to this cluster. | |
| 179 Returns : a number | |
| 180 | |
| 181 =cut | |
| 182 | |
| 183 1; |
