Bio::EnsEMBL::Compara SyntenyRegion
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::Compara::SyntenyRegion - Synteny region
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Compara::NestedSet
Bio::EnsEMBL::Utils::Argument
Bio::EnsEMBL::Utils::Exception
Inherit
Bio::EnsEMBL::Compara::NestedSet
Synopsis
  print $this_synteny_region->dbID;
print $this_synteny_region->method_link_species_set_id; my $these_dnafrag_regions = $this_synteny_region->get_all_DnaFragRegions(); foreach my $this_dnafrag_region (@$these_dnafrag_regions) { print $this_dnafrag_region->genome_db->name, ": ", $this_dnafrag_region->slice->name, "\n"; }
Description
A Bio::EnsEMBL::Compara::SyntenyRegion object is a container of Bio::EnsEMBL::Compara::DnaFragRegion
objects. Each Bio::EnsEMBL::Compara::DnaFragRegion represent a genomic region which is in synteny
with the other regions represented in the Bio::EnsEMBL::Compara::SyntenyRegion object.
Also, the Bio::EnsEMBL::Compara::SyntenyRegion object implicitly contains a
Bio::EnsEMBL::Compara::MethodLinkSpeciesSet object which defines the type of synteny.
Methods
adaptorDescriptionCode
dbIDDescriptionCode
get_all_DnaFragRegionsDescriptionCode
method_link_species_set_idDescriptionCode
new
No description
Code
new_fastDescriptionCode
stable_idDescriptionCode
Methods description
adaptorcode    nextTop
  Arg [1]     : (optional) Bio::EnsEMBL::Compara::DBSQL::SyntenyRegionAdaptor $adaptor
Example : none
Description : Getter/setter for the adaptor
Returntype : Bio::EnsEMBL::Compara::DBSQL::SyntenyRegionAdaptor object
Exceptions : none
Caller : general
Status : Stable
dbIDcodeprevnextTop
  Arg [1]     : (optional) integer $dbID
Example : none
Description : Getter/setter for the dbID value. This corresponds to
synteny_region.synteny_region_id
Returntype : integer
Exceptions : none
Caller : general
Status : Stable
get_all_DnaFragRegionscodeprevnextTop
 Arg  1     : -none-
Example : my $all_dnafrag_regions = $obj->get_all_DnaFragRegions();
Description: returns all the DnaFragRegion objects for this syntenic
region. This method is an alias for children(), see
Bio::EnsEMBL::Compara::NestedSet for more details.
Returntype : a ref. to an array of Bio::EnsEMBL::Compara::DnaFragRegion
objects
Exception :
Caller : general
Status : Stable
method_link_species_set_idcodeprevnextTop
  Arg [1]     : (optional) integer $method_link_species_set_id
Example : none
Description : Getter/setter for the method_link_species_set_id value.
Returntype : integer
Exceptions : none
Caller : general
Status : Stable
new_fast(2)codeprevnextTop
  Arg [1]     : hash reference $hashref
Example : none
Description : This is an ultra fast constructor which requires knowledge of
the objects internals to be used.
Returntype : Bio::EnsEMBL::Compara::SyntenyRegion object
Exceptions : none
Caller :
Status : Stable
stable_idcodeprevnextTop
DEPRECATED: SyntenyRegions don't have any stable id.
Methods code
adaptordescriptionprevnextTop
sub adaptor {
  my $obj = shift;

  if (@_) {
    my $value = shift;
    $obj->{'adaptor'} = $value;
  }

  return $obj->{'adaptor'};
}
dbIDdescriptionprevnextTop
sub dbID {
  my $obj = shift;

  if (@_) {
    my $value = shift;
    $obj->{'dbID'} = $value;
  }

  return $obj->{'dbID'};
}
get_all_DnaFragRegionsdescriptionprevnextTop
sub get_all_DnaFragRegions {
  my $obj = shift;

  return $obj->children();
}

1;
}
method_link_species_set_iddescriptionprevnextTop
sub method_link_species_set_id {
  my $obj = shift;
  if( @_ ) {
    my $value = shift;
    $obj->{'method_link_species_set_id'} = $value;
  }
  return $obj->{'method_link_species_set_id'};
}
newdescriptionprevnextTop
sub new {
  my ($class, @args) = @_;

  my $self = $class->SUPER::new(@args);

#  my $self = bless {}, $class;
if (scalar @args) { #do this explicitly.
my ($dbid, $method_link_species_set_id, $adaptor) = rearrange([qw(DBID METHOD_LINK_SPECIES_SET_ID ADAPTOR)], @args); $dbid && $self->dbID($dbid); $method_link_species_set_id && $self->method_link_species_set_id($method_link_species_set_id); $adaptor && $self->adaptor($adaptor); } return $self;
}
new_fastdescriptionprevnextTop
sub new_fast {
  my ($class, $hashref) = @_;

  return bless $hashref, $class;
}
stable_iddescriptionprevnextTop
sub stable_id {
  my $obj = shift;

  deprecate("SyntenyRegions don't have any stable id.");

  if( @_ ) {
    my $value = shift;
    $obj->{'stable_id'} = $value;
  }

  return $obj->{'stable_id'};
}
General documentation
OBJECT ATTRIBUTESTop
    dbID
    corresponds to synteny_region.synteny_region_id
    adaptor
    Bio::EnsEMBL::Compara::DBSQL::SyntenyRegionAdaptor object to access DB
    method_link_species_set_id
    corresponds to synteny_region.method_link_species_set_id
CONTACTTop
Ensembl - ensembl-dev@ebi.ac.uk
APPENDIXTop
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _