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
da99c824
Commit
da99c824
authored
21 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
added some more POD comments
parent
07ef7709
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/DensityFeature.pm
+25
-16
25 additions, 16 deletions
modules/Bio/EnsEMBL/DensityFeature.pm
with
25 additions
and
16 deletions
modules/Bio/EnsEMBL/DensityFeature.pm
+
25
−
16
View file @
da99c824
...
...
@@ -80,42 +80,38 @@ use vars qw(@ISA);
sub
new
{
my
$caller
=
shift
;
#allow constructor to be called as class or object method
my
$class
=
ref
(
$caller
)
||
$caller
;
my
$self
=
$class
->
SUPER::
new
(
@
_
);
my
(
$seq_region
,
$start
,
$end
,
$dt
,
$dv
)
=
rearrange
(['
SEQ_REGION
',
'
START
',
'
END
',
'
DENSITY_TYPE
',
'
DENSITY_VALUE
'],
@
_
);
rearrange
(['
SEQ_REGION
',
'
START
',
'
END
',
'
DENSITY_TYPE
',
'
DENSITY_VALUE
'],
@
_
);
throw
("
Density value must be >= 0.
")
if
(
$dv
<
0
);
if
(
!
defined
(
$dt
)){
# if(!$dt->isStored()) {
# $dt->store();
# }
# }
# else{
throw
("
Density Type is NOT optional.
");
}
$self
->
{'
density_type
'}
=
$dt
;
$self
->
{'
density_value
'}
=
$dv
;
$self
->
{'
slice
'}
=
$seq_region
;
$self
->
{'
seq_region_start
'}
=
$start
;
$self
->
{'
seq_region_end
'}
=
$end
;
return
$self
;
}
sub
new_fast
{
my
$caller
=
shift
;
#allow constructor to be called as class or object method
my
$class
=
ref
(
$caller
)
||
$caller
;
my
$self
=
$class
->
SUPER::
new
(
@
_
);
return
$self
;
...
...
@@ -169,6 +165,19 @@ sub density_value {
=head2 analysis
Arg [1] : (optional) Bio::EnsEMBL::Analysis $analysis
New value for the analysis of the attached DensityType
Example : print $df->analysis()->logic_name();
Description: Overridden superclass analysis method, to chain to analysis
method on attached DensityType.
Returntype : Bio::EnsEMBL::Analysis
Exceptions : none
Caller : general
=cut
sub
analysis
{
my
$self
=
shift
;
...
...
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