Bio::EnsEMBL::Funcgen
ExperimentalSubset
Toolbar
Summary
Bio::EnsEMBL::ExperimentalSet - A module to represent ExperimentalSubset object.
Package variables
No package variables defined.
Included modules
Inherit
Synopsis
use Bio::EnsEMBL::Funcgen::ExperimetnalSubset;
my $data_set = Bio::EnsEMBL::Funcgen::ExperimentalSubset->new(
-DBID => $dbID,
-ADAPTOR => $self,
-NAME => $name,
-EXPERIMENTAL_SET => $eset,
);
Description
An ExperimentalSubset object is a very simple skeleton class to enable storage of associated subset states. As such there
are only very simple accessor methods for basic information, and there is no namesake adaptor, rather is is handled by the
ExperimentalSetAdaptor.
Methods
Methods description
Example : my $eset = $exp_sset->experimental_set(); Description: Getter for the experimental_set attribute of this ExperimentalSubset. Returntype : Bio::EnsEMBL::Funcgen::ExperimentalSet Exceptions : None Caller : General Status : At Risk |
Example : my $name = $exp_sset->name(); Description: Getter for the name of this ExperimentalSubset. Returntype : string Exceptions : None Caller : General Status : At Risk |
Example : my $eset = Bio::EnsEMBL::Funcgen::ExperimentalSubset->new( -DBID => $dbID, -ADAPTOR => $self, -NAME => $name, -EXPERIMENTAL_SET => $eset, );
Description: Constructor for ExperimentalSubset objects.
Returntype : Bio::EnsEMBL::Funcgen::ExperimentalSubset
Exceptions : Throws if no name defined
Throws if CellType or FeatureType are not valid or stored
Caller : General
Status : At risk |
Methods code
sub experimental_set
{ my $self = shift;
return $self->{'experimental_set'};
}
1; } |
sub name
{ my $self = shift;
return $self->{'name'}; } |
sub new
{ my $caller = shift;
my $class = ref($caller) || $caller;
my $self = $class->SUPER::new(@_);
my ($name, $eset)
= rearrange(['NAME', 'EXPERIMENTAL_SET'], @_);
throw('Must provide a name argument') if ! defined $name;
if(!(ref($eset) &&
$eset->isa('Bio::EnsEMBL::Funcgen::ExperimentalSet')
&& $eset->dbID())){
throw('Must provide a valid stored experimental_set argument');
}
$self->{'name'} = $name;
$self->{'experimental_set'} = $eset;
return $self; } |
General documentation
This module was created by Nathan Johnson.
This module is part of the Ensembl project:
/