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
d154c61e
Commit
d154c61e
authored
21 years ago
by
Arne Stabenau
Browse files
Options
Downloads
Patches
Plain Diff
Optimized query for register region
parent
4936bb9f
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/DBSQL/AssemblyMapperAdaptor.pm
+9
-8
9 additions, 8 deletions
modules/Bio/EnsEMBL/DBSQL/AssemblyMapperAdaptor.pm
with
9 additions
and
8 deletions
modules/Bio/EnsEMBL/DBSQL/AssemblyMapperAdaptor.pm
+
9
−
8
View file @
d154c61e
...
...
@@ -129,6 +129,9 @@ sub register_region{
$self
->
throw
("
$assmapper
is not a Bio::EnsEMBL::AssemblyMapper
")
unless
$assmapper
->
isa
("
Bio::EnsEMBL::AssemblyMapper
");
my
$chr
=
$self
->
db
->
get_ChromosomeAdaptor
()
->
fetch_by_name
(
$chr_name
);
my
$chr_id
=
$chr
->
dbID
();
my
$max_assembly_contig
=
$self
->
db
()
->
get_MetaContainer
->
get_max_assembly_contig
();
my
$select
=
qq{
select
...
...
@@ -136,27 +139,25 @@ sub register_region{
ass.contig_end,
ass.contig_id,
ass.contig_ori,
chr.name,
ass.chr_start,
ass.chr_end
from
assembly ass,
chromosome chr
where
chr.name
=
'
$chr_
name'
and
ass.chr
omosome_id = chr.chromosome_id
and
$start <
= ass.chr_
end
and
$end >
= ass.chr_start
and
ass.chromosome_id
= $chr_
id
and
? <=
ass.chr
_end
and
? >
= ass.chr_
start
and
? <
= ass.chr_start and
ass.type = '$type'
}
;
my
$sth
=
$self
->
prepare
(
$select
);
$sth
->
execute
();
$sth
->
execute
(
$start
,
$end
,
$start
-
$max_assembly_contig
);
while
(
my
$arrayref
=
$sth
->
fetchrow_arrayref
)
{
my
(
$contig_start
,
$contig_end
,
$contig_id
,
$contig_ori
,
$chr_name
,
$chr_start
,
$chr_end
)
=
@$arrayref
;
$chr_start
,
$chr_end
)
=
@$arrayref
;
if
(
$assmapper
->
_have_registered_contig
(
$contig_id
)
==
0
)
{
$assmapper
->
_register_contig
(
$contig_id
);
$assmapper
->
_mapper
->
add_map_coordinates
(
...
...
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