Skip to content
Snippets Groups Projects
Commit 825b2526 authored by Patrick Meidl's avatar Patrick Meidl
Browse files

catch exception where no repeats are found on a chunk

parent 106fa62f
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ use Bio::EnsEMBL::Analysis;
use Bio::EnsEMBL::DensityType;
use Bio::EnsEMBL::DensityFeature;
use Bio::EnsEMBL::Mapper::RangeRegistry;
use Bio::EnsEMBL::Utils::Exception qw(warning throw);
use POSIX;
......@@ -159,7 +160,11 @@ foreach my $slice ( @sorted_slices ) {
-density_value => $percentage_repeat));
}
$dfa->store( @dfs );
if (@dfs) {
$dfa->store(@dfs);
} else {
warning("No repeat density calculated for ".$slice->name." (chunk start $chunk_start, chunk end $chunk_end).");
}
my $used_lower_limit = $small_start<$variable_start?$small_start:$variable_start;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment