Bio::EnsEMBL::ExternalData::Disease
DiseaseLocation
Toolbar
Summary
Bio::EnsEMBL::ExternalData::Disease::Disease
Package variables
No package variables defined.
Included modules
Inherit
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
Methods description
Title : chromosome Usage : Function: Get/set the chromosome name. X is 'X', not 23! Example : Returns : Args : |
Title : cyto_end Usage : Function: Example : Returns : Args : |
Title : cyto_start Usage : Function: Example : Returns : Args : |
Title : db_id Usage : Function: Get/set the omim_id from NCBI, not the id in the disease table! Example : Returns : Args : |
Title : ensembl_gene Usage : Function: Example : Returns : Args : |
Title : external_gene Usage : Function: Get/Set the gene_symbol, same as in NCBI OMIM, for human. Example : Returns : Args : |
Title : global_position Usage : Function: Example : Returns : Args : |
Title : has_gene Usage : Function: Example : Returns : Args : |
Title : new Usage : see DBHandler's fetch methods |
Methods code
sub chromosome
{
my ($self,$value) = @_;
if( defined $value) {$self->{'chromosome'} = $value;}
return $self->{'chromosome'}; } |
sub cyto_end
{
my ($self,$value) = @_;
if( defined $value) {$self->{'_cyto_end'} = $value;}
return $self->{'_cyto_end'}; } |
sub cyto_start
{
my ($self,$value) = @_;
if( defined $value) {$self->{'_cyto_start'} = $value;}
return $self->{'_cyto_start'}; } |
sub db_id
{
my ($self,$value) = @_;
if( defined $value) {$self->{'_db_id'} = $value;}
return $self->{'_db_id'}; } |
sub ensembl_gene
{
my ($self,$value) = @_;
if( defined $value) {$self->{'ensembl_gene'} = $value;}
return $self->{'ensembl_gene'}; } |
sub external_gene
{
my ($self,$value) = @_;
if( defined $value) {$self->{'_gene_id'} = $value;}
return $self->{'_gene_id'}; } |
sub global_position
{
my ($self,$value) = @_;
if( defined $value) {$self->{'global_position'} = $value;}
return $self->{'global_position'};
}
1; } |
sub has_gene
{
my ($self,$value) = @_;
if( defined $value) {$self->{'_has_gene'} = $value;}
return $self->{'_has_gene'}; } |
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);
$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 Kasprzyk | Top |
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _