Bio::EnsEMBL::ExternalData::Disease DiseaseLocation
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::ExternalData::Disease::Disease
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Root
Bio::EnsEMBL::Utils::Argument qw ( rearrange )
Inherit
Bio::EnsEMBL::Root
Synopsis
 my $location=new Bio::EnsEMBL::ExternalData::Disease::DiseaseLocation(
-db_id=>$rowhash->{'omim_id'},
-cyto_start=>$rowhash->{'start_cyto'},
-cyto_end=>$rowhash->{'end_cyto'},
-external_gene=>$rowhash->{'gene_symbol'},
-chromosome=>$rowhash->{'chromosome'});
Description
This object holds info about genomic location of a disease phenotype
Methods
chromosomeDescriptionCode
cyto_endDescriptionCode
cyto_startDescriptionCode
db_idDescriptionCode
ensembl_geneDescriptionCode
external_geneDescriptionCode
global_positionDescriptionCode
has_geneDescriptionCode
newDescriptionCode
Methods description
chromosomecode    nextTop
 Title   : chromosome
Usage :
Function: Get/set the chromosome name. X is 'X', not 23!
Example :
Returns :
Args :
cyto_endcodeprevnextTop
 Title   : cyto_end
Usage :
Function:
Example :
Returns :
Args :
cyto_startcodeprevnextTop
 Title   : cyto_start
Usage :
Function:
Example :
Returns :
Args :
db_idcodeprevnextTop
 Title   : db_id
Usage :
Function: Get/set the omim_id from NCBI, not the id in the disease table!
Example :
Returns :
Args :
ensembl_genecodeprevnextTop
 Title   : ensembl_gene
Usage :
Function:
Example :
Returns :
Args :
external_genecodeprevnextTop
 Title   : external_gene
Usage :
Function: Get/Set the gene_symbol, same as in NCBI OMIM, for human.
Example :
Returns :
Args :
global_positioncodeprevnextTop
 Title   : global_position
Usage :
Function:
Example :
Returns :
Args :
has_genecodeprevnextTop
 Title   : has_gene
Usage :
Function:
Example :
Returns :
Args :
newcodeprevnextTop
  Title     : new
Usage : see DBHandler's fetch methods
Methods code
chromosomedescriptionprevnextTop
sub chromosome {
  my ($self,$value) = @_;
  if( defined $value) {$self->{'chromosome'} = $value;}
  
  return $self->{'chromosome'};
}
cyto_enddescriptionprevnextTop
sub cyto_end {
  my ($self,$value) = @_;
  if( defined $value) {$self->{'_cyto_end'} = $value;}
  
  return $self->{'_cyto_end'};
}
cyto_startdescriptionprevnextTop
sub cyto_start {
  my ($self,$value) = @_;
  if( defined $value) {$self->{'_cyto_start'} = $value;}
  
  return $self->{'_cyto_start'};
}
db_iddescriptionprevnextTop
sub db_id {
  my ($self,$value) = @_;
  if( defined $value) {$self->{'_db_id'} = $value;}
  
  return $self->{'_db_id'};
}
ensembl_genedescriptionprevnextTop
sub ensembl_gene {
  my ($self,$value) = @_;
  if( defined $value) {$self->{'ensembl_gene'} = $value;}
  
  return $self->{'ensembl_gene'};
}
external_genedescriptionprevnextTop
sub external_gene {
  my ($self,$value) = @_;
  if( defined $value) {$self->{'_gene_id'} = $value;}
  
  return $self->{'_gene_id'};
}
global_positiondescriptionprevnextTop
sub global_position {
  my ($self,$value) = @_;
  if( defined $value) {$self->{'global_position'} = $value;}
  
  return $self->{'global_position'};
}

1;
}
has_genedescriptionprevnextTop
sub has_gene {
  my ($self,$value) = @_;
  if( defined $value) {$self->{'_has_gene'} = $value;}
  
  return $self->{'_has_gene'};
}
newdescriptionprevnextTop
sub new {
    my($class,@args) = @_;
    my $self = bless {}, $class;
    
    my ($db_id,$cyto_start,$cyto_end,$gene_id,$chromosome) = 
      rearrange([qw(
			    DB_ID
			    CYTO_START
			    CYTO_END
			    EXTERNAL_GENE
			    CHROMOSOME
			    )],@args);
    
   # $db_id  || $self->throw("I need external db id");
# $cyto_start || $self->throw("I need cytogenetic position ");
# $cyto_end || $self->throw("I need cytogenetic position");
$self->db_id($db_id); $self->cyto_start($cyto_start); $self->cyto_end($cyto_end); if (defined $chromosome){$self->chromosome($chromosome);} if (defined $gene_id){$self->external_gene($gene_id);} 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 _