Bio::EnsEMBL::ExternalData
Population
Toolbar
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
Methods description
Arg 1 : Bio::EnsEMBL::ExternalData::Frequency object Example : none Description: add a frequency object Returntype : none Exceptions : none Caller : general |
Arg : none Example : none Description: return a frequency object Returntype : array of Bio::EnsEMBL::ExternalData::Frequency objects Exceptions : none Caller : general |
Arg [1] : string population name Example : none Description: get/set for population name Returntype : string Exceptions : none Caller : general |
Arg [1] : integer for population ID Example : none Description: get/set population ID Returntype : int Exceptions : none Caller : general |
Arg [1] : string region Example : none Description: get/set for the geographical region of the population Returntype : string Exceptions : none Caller : general |
Arg [1] : integer sample size Example : none Description: get/set for sample size Returntype : integer Exceptions : none Caller : general |
Methods code
sub add_frequency
{ my ($self,$com) = @_;
push(@{$self->{'_frequency'}},$com); } |
sub each_frequency
{ my ($self) = @_;
return @{$self->{'_frequency'}} if defined $self->{'_frequency'};
}
1; } |
sub name
{ my ($self, $value) =@_;
if ( defined $value){
$self->{'name'} = $value;
}
return $self->{'name'}; } |
sub new
{ my $class = shift;
my $self = {};
bless $self, $class;
return $self; } |
sub pop_id
{ my ($self, $value) =@_;
if ( defined $value){
$self->{'pop_id'} = $value;
}
return $self->{'pop_id'}; } |
sub region
{ my ($self, $value) =@_;
if ( defined $value){
$self->{'region'} = $value;
}
return $self->{'region'}; } |
sub sample_size
{ my ($self, $value) =@_;
if ( defined $value){
$self->{'sample_size'} = $value;
}
return $self->{'sample_size'}; } |
General documentation
This code is distributed under an Apache style licence:
Please see
/code_licence.html for details