NAME
Bio::PopGen::PopulationI - Interface for Populations
SYNOPSIS
# Get Bio::PopGen::PopulationI object somehow, like# from Bio::Population::Populationprint "name is ", $population->name(), "\n";print "source is ", $population->source(), "\n";print "description is ", $population->description(), "\n";print "For marker $markername:\n";foreach my $genotype ( $population->get_Genotypes(-marker => $markername) ) {print "Individual ", $genotype->individual_id, " genotype alleles are ",join(',', $genotype->get_Alleles()), "\n";}# get a marker with allele frequencies calculated from the populationmy $marker = $population->get_Marker($markername);my %af = $marker->get_Allele_Frequencies;foreach my $allele ( keys %af ) {print "$allele $af{$allele}\n";}
DESCRIPTION
This interface describes the basics of a population. One can use this object to get the genotypes of specific individuals, only those individuals which have a certain marker, or create a marker with allele frequency information.
FEEDBACK
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via email or the web:
https://github.com/bioperl/bioperl-live/issues
AUTHOR - Jason Stajich
Email jason-at-bioperl.org
CONTRIBUTORS
Matthew Hahn, matthew.hahn-at-duke.edu
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
name
Title : nameUsage : my $name = $pop->nameFunction: Get the population nameReturns : string representing population nameArgs : [optional] string representing population name
description
Title : descriptionUsage : my $description = $pop->descriptionFunction: Get the population descriptionReturns : string representing population descriptionArgs : [optional] string representing population description
source
Title : sourceUsage : my $source = $pop->sourceFunction: Get the population sourceReturns : string representing population sourceArgs : [optional] string representing population source
annotation
Title : annotationUsage : my $annotation_collection = $pop->annotation;Function: Get/set a Bio::AnnotationCollectionI for this populationReturns : Bio::AnnotationCollectionI objectArgs : [optional set] Bio::AnnotationCollectionI object
get_Individuals
Title : get_IndividualsUsage : my @inds = $pop->get_Individuals();Function: Return the individuals, alternatively restrict by a criteriaReturns : Array of L<Bio::PopGen::IndividualI> objectsArgs : none if want all the individuals OR,-unique_id => To get an individual with a specific id-marker => To only get individuals which have a genotype specificfor a specific marker name
get_Genotypes
Title : get_GenotypesUsage : my @genotypes = $pop->get_Genotypes(-marker => $name)Function: Get the genotypes for all the individuals for a specificmarker nameReturns : Array of L<Bio::PopGen::GenotypeI> objectsArgs : -marker => name of the marker
get_Marker
Title : get_MarkerUsage : my $marker = $population->get_Marker($name)Function: Get a Bio::PopGen::Marker object based on this populationReturns : L<Bio::PopGen::MarkerI> objectArgs : name of the marker
get_marker_names
Title : get_marker_namesUsage : my @names = $pop->get_marker_names;Function: Get the names of the markersReturns : Array of stringsArgs : none
get_Markers
Title : get_MarkersUsage : my @markers = $pop->get_Markers();Function: Will retrieve a list of instantiated MarkerI objectsfor a population. This is a convience method combiningget_marker_names with get_MarkerReturns : List of array of Bio::PopGen::MarkerI objectsArgs : none
get_number_individuals
Title : get_number_individualsUsage : my $count = $pop->get_number_individuals;Function: Get the count of the number of individualsReturns : integer >= 0Args : [optional] marker name, will return a count of the numberof individuals which have this marker