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
cc546ef9
Commit
cc546ef9
authored
12 years ago
by
Dan Staines
Browse files
Options
Downloads
Patches
Plain Diff
support for multispecies dbs
parent
c227ab41
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/Pipeline/Production/GeneCount.pm
+6
-4
6 additions, 4 deletions
modules/Bio/EnsEMBL/Pipeline/Production/GeneCount.pm
with
6 additions
and
4 deletions
modules/Bio/EnsEMBL/Pipeline/Production/GeneCount.pm
+
6
−
4
View file @
cc546ef9
...
...
@@ -45,12 +45,14 @@ sub get_slices {
my
$helper
=
$dba
->
dbc
()
->
sql_helper
();
my
$sql
=
q{
SELECT DISTINCT seq_region_id FROM gene
WHERE seq_region_id NOT IN
join seq_region using (seq_region_id)
join coord_system cs using (coord_system_id)
WHERE cs.species_id=? AND seq_region_id NOT IN
(SELECT seq_region_id
FROM seq_region_attrib sa, attrib_type at
WHERE at.attrib_type_id = sa.attrib_type_id
AND at.code= "non_ref") }
;
my
@ids
=
@
{
$helper
->
execute_simple
(
-
SQL
=>
$sql
)
};
my
@ids
=
@
{
$helper
->
execute_simple
(
-
SQL
=>
$sql
,
-
PARAMS
=>
[
$dba
->
species_id
()]
)
};
foreach
my
$id
(
@ids
)
{
push
@slices
,
$sa
->
fetch_by_seq_region_id
(
$id
);
}
...
...
@@ -64,8 +66,8 @@ sub get_all_slices {
my
$sa
=
Bio::EnsEMBL::
Registry
->
get_adaptor
(
$species
,
'
core
',
'
slice
');
my
$helper
=
$dba
->
dbc
()
->
sql_helper
();
my
$sql
=
q{
SELECT DISTINCT seq_region_id FROM gene }
;
my
@ids
=
@
{
$helper
->
execute_simple
(
-
SQL
=>
$sql
)
};
SELECT DISTINCT seq_region_id FROM gene
join seq_region using (seq_region_id) join coord_system using (coord_system_id) where species_id=?
}
;
my
@ids
=
@
{
$helper
->
execute_simple
(
-
SQL
=>
$sql
,
-
PARAMS
=>
[
$dba
->
species_id
()]
)
};
foreach
my
$id
(
@ids
)
{
push
@slices
,
$sa
->
fetch_by_seq_region_id
(
$id
);
}
...
...
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