Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
afaa7e12
Commit
afaa7e12
authored
19 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Formerly RegulatoryMotif.pm
parent
9b07fd26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/RegulatoryFactor.pm
+105
-0
105 additions, 0 deletions
modules/Bio/EnsEMBL/RegulatoryFactor.pm
with
105 additions
and
0 deletions
modules/Bio/EnsEMBL/RegulatoryFactor.pm
0 → 100644
+
105
−
0
View file @
afaa7e12
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
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment