Bio::EnsEMBL::ExternalData::Disease Disease
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::ExternalData::Disease::Disease
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Root
Inherit
Bio::EnsEMBL::Root
Synopsis
# Instantiate an empty object.
$disease=new Bio::EnsEMBL::ExternalData::Disease::Disease;
$disease->name('...');
$disease->add_Location($location); # add DiseaseLocation object.
# Fetch objects by DBHandler.
# See DBHandler docs.
# Usage
my @locations=$disease->each_Location;
Description
This object represents a disease, a container for DiseaseLocation objects
Methods
add_LocationDescriptionCode
each_LocationDescriptionCode
nameDescriptionCode
new
No description
Code
Methods description
add_Locationcode    nextTop
 Title   : add_Location
Usage :
Function: attach a DiseaseLocation object.
Example :
Returns :
Args :
each_LocationcodeprevnextTop
 Title   : each_Location
Usage :
Function:
Example :
Returns : An array of DiseaseLocation objects.
Args : [None]
namecodeprevnextTop
 Title   : name
Usage :
Function: Get/set for disease brief. Refer to NCBI OMIM records
Example :
Returns :
Args :
Methods code
add_LocationdescriptionprevnextTop
sub add_Location {
                          
 my ($self,$location)=@_;

 if( ! $location->isa("Bio::EnsEMBL::ExternalData::Disease::DiseaseLocation") ) {
       $self->throw("$location is not a Bio::EnsEMBL::Disease::DiseaseLocation!");
   }

   push(@{$self->{'_disease_location_array'}},$location);
}
each_LocationdescriptionprevnextTop
sub each_Location {
   my ($self) = @_;

   return @{$self->{'_disease_location_array'}};
}


1;
}
namedescriptionprevnextTop
sub name {
    my ($self,$value)=@_;

  if( defined $value) {$self->{'name'} = $value;}  
  return $self->{'name'};
}
newdescriptionprevnextTop
sub new {
    my($class,@locations) = @_;
    my $self = bless {}, $class;
         
    $self->{'_disease_location_array'} = [];
    
    foreach my $location (@locations){$self->add_location($location);}

    return $self;
}
General documentation
AUTHOR - Arek KasprzykTop
Email arek@ebi.ac.uk
Describe contact details here
APPENDIXTop
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _