Bio::EnsEMBL::Variation Genotype
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::Variation::Genotype - Abstract base class representing a genotype
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Storable
Bio::EnsEMBL::Utils::Argument qw ( rearrange )
Bio::EnsEMBL::Utils::Exception qw ( throw deprecate warning )
Inherit
Bio::EnsEMBL::Storable
Synopsis
    print $genotype->variation()->name(), "\n";
print $genotype->allele1(), '/', $genotype->allele2(), "\n";
Description
This is an abstract base class representing a genotype. Specific types of
genotype are represented by subclasses such as IndividualGenotype and
PopulationGenotype. Genotypes are assumed to be for diploid organisms
and are represented by two alleles.
Methods
allele1DescriptionCode
allele2DescriptionCode
Methods description
allele1code    nextTop
  Arg [1]    : string $newval (optional)
The new value to set the allele1 attribute to
Example : $allele1 = $genotype->allele1()
$genotype->allele1('A');
Description: Getter/Setter for one of the two alleles that define this
genotype.
Returntype : string
Exceptions : none
Caller : general
Status : Stable
allele2codeprevnextTop
  Arg [1]    : string $newval (optional)
The new value to set the allele1 attribute to
Example : $allele1 = $genotype->allele2()
$genotype->allele2('A');
Description: Getter/Setter for one of the two alleles that define this
genotype.
Returntype : string
Exceptions : none
Caller : general
Status : Stable
Methods code
allele1descriptionprevnextTop
sub allele1 {
  my $self = shift;
  return $self->{'allele1'} = shift if(@_);
  return $self->{'allele1'};
}
allele2descriptionprevnextTop
sub allele2 {
  my $self = shift;
  return $self->{'allele2'} = shift if(@_);
  return $self->{'allele2'};
}

1;
}
General documentation
CONTACTTop
Post questions to the Ensembl development list: ensembl-dev@ebi.ac.uk