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
37ad8a49
Commit
37ad8a49
authored
21 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
changed constructors to take arguments
parent
fdb511c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/Mapper/Pair.pm
+2
-6
2 additions, 6 deletions
modules/Bio/EnsEMBL/Mapper/Pair.pm
modules/Bio/EnsEMBL/Mapper/Unit.pm
+3
-21
3 additions, 21 deletions
modules/Bio/EnsEMBL/Mapper/Unit.pm
with
5 additions
and
27 deletions
modules/Bio/EnsEMBL/Mapper/Pair.pm
+
2
−
6
View file @
37ad8a49
...
...
@@ -37,13 +37,9 @@ use vars qw(@ISA);
use
strict
;
sub
new
{
my
(
$class
,
@args
)
=
@_
;
my
(
$class
,
$from
,
$to
,
$ori
)
=
@_
;
my
$self
=
{};
bless
$self
,
$class
;
# set stuff in self from @args
return
$self
;
return
bless
{'
from
'
=>
$from
,
'
to
'
=>
$to
,
'
ori
'
=>
$ori
},
$class
;
}
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Mapper/Unit.pm
+
3
−
21
View file @
37ad8a49
...
...
@@ -28,37 +28,19 @@ This module is part of the Ensembl project http://www.ensembl.org
Post general queries to B<ensembl-dev@ebi.ac.uk>
=head1 APPENDIX
The rest of the documentation details each of the object methods.
Internal methods are usually preceded with a _
=head1 METHODS
=cut
# Let the code begin...
package
Bio::EnsEMBL::Mapper::
Unit
;
use
vars
qw(@ISA)
;
use
strict
;
# Object preamble - inherits from Bio::EnsEMBL::Root
use
Bio::EnsEMBL::
Root
;
@ISA
=
qw(Bio::EnsEMBL::Root)
;
# new() is written here
sub
new
{
my
(
$class
,
@args
)
=
@_
;
my
$self
=
{};
bless
$self
,
$class
;
my
(
$class
,
$id
,
$start
,
$end
)
=
@_
;
# set stuff in self from @args
return
$self
;
return
bless
{'
id
'
=>
$id
,
'
start
'
=>
$start
,
'
end
'
=>
$end
},
$class
;
}
...
...
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