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
317b6708
Commit
317b6708
authored
16 years ago
by
Evgeny Bragin
Browse files
Options
Downloads
Patches
Plain Diff
* Merge 50 <-> dev
parent
8fb0007f
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/IdMapping/Cache.pm
+25
-0
25 additions, 0 deletions
modules/Bio/EnsEMBL/IdMapping/Cache.pm
with
25 additions
and
0 deletions
modules/Bio/EnsEMBL/IdMapping/Cache.pm
+
25
−
0
View file @
317b6708
...
...
@@ -188,6 +188,17 @@ sub build_cache_by_slice {
sub
build_cache_all
{
my
$self
=
shift
;
<<<<<<<
Cache
.
pm
my
$dbtype
=
shift
;
my
$dba
=
$self
->
get_DBAdaptor
(
$dbtype
);
my
$ga
=
$dba
->
get_GeneAdaptor
;
my
$genes
=
$ga
->
fetch_all
;
# find common coord_system
my
$common_cs_found
=
$self
->
find_common_coord_systems
;
=======
my
$dbtype
=
shift
;
my
$dba
=
$self
->
get_DBAdaptor
(
$dbtype
);
...
...
@@ -203,12 +214,26 @@ sub build_cache_all {
my
$type
=
"
$dbtype
.ALL
";
my
$num_genes
=
$self
->
build_cache_from_genes
(
$type
,
$genes
,
'
CHECK
');
undef
$genes
;
>>>>>>>
1.16
<<<<<<<
Cache
.
pm
# Build cache. Setting $need_project to 'CHECK' will cause
# build_cache_from_genes() to check the coordinate system for each gene.
my
$type
=
"
$dbtype
.ALL
";
my
$num_genes
=
$self
->
build_cache_from_genes
(
$type
,
$genes
,
'
CHECK
');
undef
$genes
;
=======
# write cache to file, then flush cache to reclaim memory
my
$size
=
$self
->
write_all_to_file
(
$type
);
>>>>>>>
1.16
<<<<<<<
Cache
.
pm
# write cache to file, then flush cache to reclaim memory
my
$size
=
$self
->
write_all_to_file
(
$type
);
=======
# set cache method (required for loading cache later)
$self
->
cache_method
('
ALL
');
>>>>>>>
1.16
return
$num_genes
,
$size
;
}
...
...
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