Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
a08b56ee
Commit
a08b56ee
authored
Aug 02, 2012
by
Magali Ruffier
Browse files
supports different dbtype
parent
80f69c74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/Bio/EnsEMBL/Pipeline/Production/ConstitutiveExons.pm
modules/Bio/EnsEMBL/Pipeline/Production/ConstitutiveExons.pm
+6
-5
No files found.
modules/Bio/EnsEMBL/Pipeline/Production/ConstitutiveExons.pm
View file @
a08b56ee
...
...
@@ -11,16 +11,17 @@ use Bio::EnsEMBL::DensityType;
use
Bio::EnsEMBL::
DensityFeature
;
#
#
D
efault run method
#
# For a given
species, generates the required density features in the core databas
e
#
d
efault run method
# For a given
databases of dbtype, flags exons which are constitutiv
e
sub
run
{
my
(
$self
)
=
@_
;
my
$species
=
$self
->
param
('
species
');
my
$dba
=
Bio::EnsEMBL::
Registry
->
get_DBAdaptor
(
$species
,
'
core
');
my
$dbtype
=
$self
->
param
('
dbtype
');
my
$dba
=
Bio::EnsEMBL::
Registry
->
get_DBAdaptor
(
$species
,
$dbtype
);
my
$helper
=
$dba
->
dbc
()
->
sql_helper
();
my
$ga
=
Bio::EnsEMBL::
Registry
->
get_adaptor
(
$species
,
'
core
'
,
'
Gene
');
my
$ga
=
Bio::EnsEMBL::
Registry
->
get_adaptor
(
$species
,
$dbtype
,
'
Gene
');
my
$slices
=
Bio::EnsEMBL::
Registry
->
get_adaptor
(
$species
,
'
core
'
,
'
slice
')
->
fetch_all
('
toplevel
');
my
$slices
=
Bio::EnsEMBL::
Registry
->
get_adaptor
(
$species
,
$dbtype
,
'
slice
')
->
fetch_all
('
toplevel
');
my
@gene_dbIDs
=
sort
{
$a
<=>
$b
}
@
{
$ga
->
list_dbIDs
()
};
my
$bin
=
scalar
(
@gene_dbIDs
)
/
1000
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment