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
b084c3b9
Commit
b084c3b9
authored
12 years ago
by
Magali Ruffier
Browse files
Options
Downloads
Patches
Plain Diff
added methods to get gene counts on alternate sequences
parent
064d9230
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
+32
-0
32 additions, 0 deletions
modules/Bio/EnsEMBL/Pipeline/Production/GeneCount.pm
with
32 additions
and
0 deletions
modules/Bio/EnsEMBL/Pipeline/Production/GeneCount.pm
+
32
−
0
View file @
b084c3b9
...
...
@@ -18,6 +18,18 @@ sub get_attrib_codes {
return
%biotypes
;
}
sub
get_alt_attrib_codes
{
my
(
$self
)
=
@_
;
my
@alt_attrib_codes
=
('
coding_acnt
',
'
pseudogene_acnt
',
'
noncoding_acnt
');
my
%biotypes
;
foreach
my
$alt_code
(
@alt_attrib_codes
)
{
my
(
$group
)
=
$alt_code
=~
/(\w+)\_acnt/
;
my
$biotypes
=
$self
->
get_biotype_group
(
$group
);
$biotypes
{
$alt_code
}
=
$biotypes
;
}
return
%biotypes
;
}
sub
get_total
{
my
(
$self
)
=
@_
;
my
$species
=
$self
->
param
('
species
');
...
...
@@ -26,6 +38,26 @@ sub get_total {
}
sub
get_slices
{
my
(
$self
,
$species
)
=
@_
;
my
@slices
;
my
$dba
=
Bio::EnsEMBL::
Registry
->
get_DBAdaptor
(
$species
,
'
core
');
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
WHERE 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
)
};
foreach
my
$id
(
@ids
)
{
push
@slices
,
$sa
->
fetch_by_seq_region_id
(
$id
);
}
return
\
@slices
;
}
sub
get_all_slices
{
my
(
$self
,
$species
)
=
@_
;
my
@slices
;
my
$dba
=
Bio::EnsEMBL::
Registry
->
get_DBAdaptor
(
$species
,
'
core
');
...
...
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