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
dc87fe33
Commit
dc87fe33
authored
Sep 04, 2012
by
Magali Ruffier
Browse files
get_slice method added
parent
25edd30b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
modules/Bio/EnsEMBL/Pipeline/Production/StatsGenerator.pm
modules/Bio/EnsEMBL/Pipeline/Production/StatsGenerator.pm
+7
-1
No files found.
modules/Bio/EnsEMBL/Pipeline/Production/StatsGenerator.pm
View file @
dc87fe33
...
...
@@ -18,7 +18,7 @@ sub run {
my
$total
=
$self
->
get_total
();
my
$sum
=
0
;
my
$slices
=
Bio::EnsEMBL::
Registry
->
get_adaptor
(
$species
,
'
core
',
'
slice
')
->
fetch_all
('
toplevel
'
);
my
$slices
=
$self
->
get_slices
(
$species
);
my
@sorted_slices
=
sort
(
{
$a
->
coord_system
()
->
rank
()
<=>
$b
->
coord_system
()
->
rank
()
||
$b
->
seq_region_length
()
<=>
$a
->
seq_region_length
()
}
@$slices
)
;
...
...
@@ -37,6 +37,12 @@ sub run {
}
}
sub
get_slices
{
my
(
$self
,
$species
)
=
@_
;
my
@slices
=
Bio::EnsEMBL::
Registry
->
get_adaptor
(
$species
,
'
core
',
'
slice
')
->
fetch_all
('
toplevel
');
return
\
@slices
;
}
sub
delete_old_attrib
{
my
(
$self
,
$dba
,
%attrib_codes
)
=
@_
;
...
...
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