Bio::EnsEMBL::Compara
SyntenyRegion
Toolbar
Summary
Bio::EnsEMBL::Compara::SyntenyRegion - Synteny region
Package variables
No package variables defined.
Included modules
Inherit
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
Methods description
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 |
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 |
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 |
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 |
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 |
DEPRECATED: SyntenyRegions don't have any stable id. |
Methods code
sub adaptor
{ my $obj = shift;
if (@_) {
my $value = shift;
$obj->{'adaptor'} = $value;
}
return $obj->{'adaptor'}; } |
sub dbID
{ my $obj = shift;
if (@_) {
my $value = shift;
$obj->{'dbID'} = $value;
}
return $obj->{'dbID'}; } |
sub get_all_DnaFragRegions
{ my $obj = shift;
return $obj->children();
}
1; } |
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'}; } |
sub new
{ my ($class, @args) = @_;
my $self = $class->SUPER::new(@args);
if (scalar @args) {
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; } |
sub new_fast
{ my ($class, $hashref) = @_;
return bless $hashref, $class; } |
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
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
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _