Skip to content
Snippets Groups Projects
Commit afaa7e12 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Formerly RegulatoryMotif.pm

parent 9b07fd26
No related branches found
No related tags found
No related merge requests found
use strict;
package Bio::EnsEMBL::RegulatoryFactor;
use Bio::EnsEMBL::Storable;
use Bio::EnsEMBL::Utils::Argument qw(rearrange);
use vars qw(@ISA);
@ISA = qw(Bio::EnsEMBL::Storable);
=head2 new
Arg [NAME] : string (optional)
The name of this regulatory factor
Arg [TYPE]: string (optional)
The type of repeat consensus
Arg [...]: Named arguments to superclass constructor
(see Bio::EnsEMBL::Storable)
Example : $rc = Bio::EnsEMBL::RegulatoryFactor->new
(-NAME => 'SomeFactorName'
-TYPE => 'promoter',
-DBID => 1023,
-ADAPTOR => $rc_adaptor);
Description: Creates a new Bio::EnsEMBL::RegulatoryFactor object
Returntype : Bio::EnsEMBL::RegulatoryFactor
Exceptions : none
Caller : RegulatoryFactor
=cut
sub new {
my $caller = shift;
my $class = ref($caller) || $caller;
my $self = $class->SUPER::new(@_);
my ($name, $type ) =
rearrange(['NAME', 'TYPE'], @_);
$self->{'name'} = $name;
$self->{'type'} = $type;
return $self;
}
sub new_fast {
my $class = shift;
my $hashref = shift;
return bless $hashref, $class;
}
=head2 name
Arg [1] : string $name (optional)
Example : $name = $regulatory_factor->name()
Description: Getter/Setter for the name of this regulatory factor
Returntype : string
Exceptions : none
Caller : general
=cut
sub name {
my $self = shift;
$self->{'name'} = shift if(@_);
return $self->{'name'};
}
=head2 type
Arg [1] : string $type
Example : $type = $regulatory_factor->type()
Description: Getter/Setter for the length of this regulatory factor
Returntype : int
Exceptions : none
Caller : general
=cut
sub type {
my $self = shift;
$self->{'type'} = shift if(@_);
return $self->{'type'};
}
1;
__END__
=head1 NAME - Bio::EnsEMBL::RegulatoryFactor
=head1 DESCRIPTION
This object represents an entry in the
regulatory_factor table.
=head1 AUTHOR
Glenn Proctor< email> glenn@ebi.ac.uk
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment