Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl
Commits
9755392d
Commit
9755392d
authored
Aug 15, 2012
by
Steve Trevanion
Browse files
get non reference slices when using split_chromosomes_by_size in the density scripts
parent
877b760f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/Bio/EnsEMBL/Utils/ConversionSupport.pm
modules/Bio/EnsEMBL/Utils/ConversionSupport.pm
+2
-1
No files found.
modules/Bio/EnsEMBL/Utils/ConversionSupport.pm
View file @
9755392d
...
...
@@ -1131,6 +1131,7 @@ sub split_chromosomes_by_size {
my
$cutoff
=
shift
||
5000000
;
my
$dup
=
shift
||
0
;
my
$cs_version
=
shift
;
my
$include_non_reference
=
1
;
#get non reference slices
my
$slice_adaptor
=
$self
->
dba
->
get_SliceAdaptor
;
my
$top_slices
;
if
(
$self
->
param
('
chromosomes
'))
{
...
...
@@ -1138,7 +1139,7 @@ sub split_chromosomes_by_size {
push
@
{
$top_slices
},
$slice_adaptor
->
fetch_by_region
('
chromosome
',
$chr
);
}
}
else
{
$top_slices
=
$slice_adaptor
->
fetch_all
('
chromosome
',
$cs_version
,
0
,
$dup
);
$top_slices
=
$slice_adaptor
->
fetch_all
('
chromosome
',
$cs_version
,
$include_non_reference
,
$dup
);
}
my
(
$big_chr
,
$small_chr
,
$min_big_chr
,
$min_small_chr
);
...
...
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