Bio::EnsEMBL::ExternalData Population
SummaryPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::ExternalData::Population - create Population object for subSNP frequencies
Package variables
No package variables defined.
Synopsis
 my $snp_renderer = $snp_data->renderer;
$snp_renderer->outputFrequencyTable;
Description
 Container object attached to SNPs which holds allele frequency objects per population for a subSNP.
Methods
add_frequencyDescriptionCode
each_frequencyDescriptionCode
nameDescriptionCode
new
No description
Code
pop_idDescriptionCode
regionDescriptionCode
sample_sizeDescriptionCode
Methods description
add_frequencycode    nextTop
  Arg 1      : Bio::EnsEMBL::ExternalData::Frequency object
Example : none
Description: add a frequency object
Returntype : none
Exceptions : none
Caller : general
each_frequencycodeprevnextTop
  Arg        : none
Example : none
Description: return a frequency object
Returntype : array of Bio::EnsEMBL::ExternalData::Frequency objects
Exceptions : none
Caller : general
namecodeprevnextTop
  Arg [1]    : string population name
Example : none
Description: get/set for population name
Returntype : string
Exceptions : none
Caller : general
pop_idcodeprevnextTop
  Arg [1]    : integer for population ID
Example : none
Description: get/set population ID
Returntype : int
Exceptions : none
Caller : general
regioncodeprevnextTop
  Arg [1]    : string region
Example : none
Description: get/set for the geographical region of the population
Returntype : string
Exceptions : none
Caller : general
sample_sizecodeprevnextTop
  Arg [1]    : integer sample size
Example : none
Description: get/set for sample size
Returntype : integer
Exceptions : none
Caller : general
Methods code
add_frequencydescriptionprevnextTop
sub add_frequency {
   my ($self,$com) = @_;
   push(@{$self->{'_frequency'}},$com);
}
each_frequencydescriptionprevnextTop
sub each_frequency {
   my ($self) = @_;
   return @{$self->{'_frequency'}} if defined $self->{'_frequency'};
}


1;
}
namedescriptionprevnextTop
sub name {
  my ($self, $value) =@_;
  if ( defined $value){
    $self->{'name'} = $value;
  }
  return $self->{'name'};
}
newdescriptionprevnextTop
sub new {
    my $class = shift;
    my $self = {};

    # rebless into own class
bless $self, $class; return $self;
}
pop_iddescriptionprevnextTop
sub pop_id {
  my ($self, $value) =@_;
  if ( defined $value){
    $self->{'pop_id'} = $value;
  }
  return $self->{'pop_id'};
}
regiondescriptionprevnextTop
sub region {
  my ($self, $value) =@_;
  if ( defined $value){
    $self->{'region'} = $value;
  }
  return $self->{'region'};
}
sample_sizedescriptionprevnextTop
sub sample_size {
  my ($self, $value) =@_;
  if ( defined $value){
    $self->{'sample_size'} = $value;
  }
  return $self->{'sample_size'};
}
General documentation
LICENCETop
This code is distributed under an Apache style licence:
Please see /code_licence.html for details
CONTACTTop
Fiona Cunningham <fc1@sanger.ac.uk>