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
e4e2fa36
Commit
e4e2fa36
authored
24 years ago
by
Tony Cox
Browse files
Options
Downloads
Patches
Plain Diff
Added $vc->extend_maximally(_left/right) to virtual contig code
Not the prettiest way to do it but it works.
parent
1c22f3b3
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/DB/VirtualContig.pm
+73
-1
73 additions, 1 deletion
modules/Bio/EnsEMBL/DB/VirtualContig.pm
with
73 additions
and
1 deletion
modules/Bio/EnsEMBL/DB/VirtualContig.pm
+
73
−
1
View file @
e4e2fa36
...
...
@@ -150,7 +150,7 @@ These functions are to implement the ContigI interface
Title : extend
Usage : $new_vc = $vc->extend(100,100);
Function: Make a new vc by e
n
tending an existing one
Function: Make a new vc by e
x
tending an existing one
Example :
Returns : Bio::EnsEMBL::DB::VirtualContig
Args :
...
...
@@ -182,6 +182,78 @@ sub extend {
}
=head2 extend_maximally
Title : extend_maximally
Usage : $new_vc = $vc->extend_maximally();
Function: Extends an existing vc as far as possible in both directions
Example :
Returns : Bio::EnsEMBL::DB::VirtualContig
Args :
=cut
sub
extend_maximally
{
my
(
$self
)
=
@_
;
if
(
!
ref
$self
||
!
$self
->
isa
('
Bio::EnsEMBL::DB::VirtualContigI
')
)
{
$self
->
throw
("
Can only extend a VirtualContigI, Bailing out...
");
}
# based on an original idea by Ewan Birney. ;)
my
$nvc
=
$self
->
extend
(
100000000000
,
100000000000
);
return
$nvc
;
}
=head2 extend_maximally_left
Title : extend_maximally_left
Usage : $new_vc = $vc->extend_maximally_left();
Function: Extends an existing vc as far as possible in both directions
Example :
Returns : Bio::EnsEMBL::DB::VirtualContig
Args :
=cut
sub
extend_maximally_left
{
my
(
$self
)
=
@_
;
if
(
!
ref
$self
||
!
$self
->
isa
('
Bio::EnsEMBL::DB::VirtualContigI
')
)
{
$self
->
throw
("
Can only extend a VirtualContigI, Bailing out...
");
}
# based on an original idea by Ewan Birney. ;)
my
$nvc
=
$self
->
extend
(
100000000000
,
0
);
return
$nvc
;
}
=head2 extend_maximally_right
Title : extend_maximally_right
Usage : $new_vc = $vc->extend_maximally_right();
Function: Extends an existing vc as far as possible in both directions
Example :
Returns : Bio::EnsEMBL::DB::VirtualContig
Args :
=cut
sub
extend_maximally_right
{
my
(
$self
)
=
@_
;
if
(
!
ref
$self
||
!
$self
->
isa
('
Bio::EnsEMBL::DB::VirtualContigI
')
)
{
$self
->
throw
("
Can only extend a VirtualContigI, Bailing out...
");
}
# based on an original idea by Ewan Birney. ;)
my
$nvc
=
$self
->
extend
(
0
,
100000000000
);
return
$nvc
;
}
=head2 primary_seq
Title : primary_seq
...
...
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