3 # BioPerl module for Bio::PopGen::IndividualI
5 # Please direct questions and support issues to <bioperl-l@bioperl.org>
7 # Cared for by Jason Stajich <jason-at-bioperl.org>
9 # Copyright Jason Stajich
11 # You may distribute this module under the same terms as perl itself
13 # POD documentation - main docs before the code
17 Bio::PopGen::IndividualI - An individual who has Genotype or Sequence Results
21 # Get a Bio::PopGen::IndividualI somehow
22 # test if it has alleles/genotypes for a given marker
23 if( $ind->has_marker($markername) ) {
26 print $ind->unique_id, "\n";
28 # get the number of results (genotypes)
29 print $ind->num_results;
33 Describe the interface here
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.
43 bioperl-l@bioperl.org - General discussion
44 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
48 Please direct usage questions or support issues to the mailing list:
50 I<bioperl-l@bioperl.org>
52 rather than to the module maintainer directly. Many experienced and
53 reponsive experts will be able look at the problem and quickly
54 address it. Please include a thorough description of the problem
55 with code and data examples if at all possible.
59 Report bugs to the Bioperl bug tracking system to help us keep track
60 of the bugs and their resolution. Bug reports can be submitted via
63 https://github.com/bioperl/bioperl-live/issues
65 =head1 AUTHOR - Jason Stajich
67 Email jason-at-bioperl.org
71 The rest of the documentation details each of the object methods.
72 Internal methods are usually preceded with a _
77 # Let the code begin...
80 package Bio
::PopGen
::IndividualI
;
84 use base
qw(Bio::Root::RootI);
90 Usage : my $id = $individual->unique_id
91 Function: Unique Identifier
92 Returns : string representing unique identifier
100 $self->throw_not_implemented();
106 Title : num_genotypes
107 Usage : my $count = $person->num_results;
108 Function: returns the count of the number of Results for a person
115 shift->throw_not_implemented;
120 $self->deprecated("num_of_results is deprecated, use num_genotypes instead");
121 $self->num_genotypes;
127 Usage : my $annotation_collection = $ind->annotation;
128 Function: Get/set a Bio::AnnotationCollectionI for this individual
129 Returns : Bio::AnnotationCollectionI object
130 Args : [optional set] Bio::AnnotationCollectionI object
135 my ($self, $arg) = @_;
136 $self->throw_not_implemented();
141 Title : get_Genotypes
142 Usage : my @genotypes = $ind->get_Genotypes(-marker => $markername);
143 Function: Get the genotypes for an individual, based on a criteria
144 Returns : Array of genotypes
145 Args : either none (return all genotypes) or
146 -marker => name of marker to return (exact match, case matters)
153 $self->throw_not_implemented();
159 Usage : if( $ind->has_Marker($name) ) {}
160 Function: Boolean test to see if an Individual has a genotype
161 for a specific marker
162 Returns : Boolean (true or false)
163 Args : String representing a marker name
169 my ($self,$name) = @_;
170 $self->throw_not_implemented();
173 =head2 get_marker_names
175 Title : get_marker_names
176 Usage : my @names = $individual->get_marker_names;
177 Function: Returns the list of known marker names
178 Returns : List of strings
184 sub get_marker_names
{
186 $self->throw_not_implemented();