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
069be779
Commit
069be779
authored
24 years ago
by
Ewan Birney
Browse files
Options
Downloads
Patches
Plain Diff
added contig map functions
parent
b836a3a7
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
+74
-0
74 additions, 0 deletions
modules/Bio/EnsEMBL/DB/VirtualContig.pm
with
74 additions
and
0 deletions
modules/Bio/EnsEMBL/DB/VirtualContig.pm
+
74
−
0
View file @
069be779
...
...
@@ -630,6 +630,80 @@ sub skip_SeqFeature {
return
$self
->
{'
feature_skip
'}
->
{
$tag
};
}
=head2 rawcontig_ids
Title : rawcontig_ids
Usage :
Function:
Example :
Returns :
Args :
=cut
sub
rawcontig_ids
{
my
(
$self
,
@args
)
=
@_
;
return
keys
%
{
$self
->
{'
contig
'}};
}
=head2 start_in_vc
Title : start_in_vc
Usage : $vc->start_in_vc('rawcontigid');
Function:
Example :
Returns :
Args :
=cut
sub
start_in_vc
{
my
(
$self
,
$rawcontigid
)
=
@_
;
if
(
!
defined
$rawcontigid
||
!
exists
$self
->
{'
contig
'}
->
{
$rawcontigid
}
)
{
$self
->
throw
("
No rawcontig id provided/not in vc [
$rawcontigid
]
");
}
return
$self
->
{'
start
'}
->
{
$rawcontigid
}
}
=head2 end_in_vc
Title : end_in_vc
Usage : $vc->end_in_vc('rawcontigid')
Function:
Example :
Returns :
Args :
=cut
sub
end_in_vc
{
my
(
$self
,
$cid
)
=
@_
;
if
(
$self
->
{'
rightmostcontigid
'}
eq
$cid
)
{
return
$self
->
start_in_vc
(
$cid
)
+
$self
->
{'
rightmostend
'};
}
else
{
return
$self
->
start_in_vc
(
$cid
)
+
$self
->
{'
contig
'}
->
{
$cid
}
->
golden_length
;
}
}
sub
ori_in_vc
{
my
(
$self
,
$rawcontigid
)
=
@_
;
if
(
!
defined
$rawcontigid
||
!
exists
$self
->
{'
contig
'}
->
{
$rawcontigid
}
)
{
$self
->
throw
("
No rawcontig id provided/not in vc [
$rawcontigid
]
");
}
return
$self
->
{'
contigori
'}
->
{
$rawcontigid
}
}
=head2 _build_clone_map
...
...
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