Skip to content
Snippets Groups Projects
Commit 8158ad72 authored by Monika Komorowska's avatar Monika Komorowska
Browse files

Check if $end is defined in fetch_by_Slice_start_end_strand at line 149

parent ddc4d592
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ sub fetch_by_Slice_start_end_strand {
$start = 1 if(!defined($start));
if ( ( $start > $end || $start < 0 || $end < 0 || $slice->start> $slice->end ) && $slice->is_circular ) {
if ( ( !defined($end) || $start > $end || $start < 0 || $end < 0 || $slice->start> $slice->end ) && $slice->is_circular ) {
if ($start > $end ) {
return $self->_fetch_by_Slice_start_end_strand_circular( $slice, $start, $end, $strand );
}
......@@ -158,6 +158,9 @@ sub fetch_by_Slice_start_end_strand {
$end += $slice->seq_region_length;
}
if ( !defined($end) ) {
}
if($slice->start> $slice->end) {
return $self->_fetch_by_Slice_start_end_strand_circular( $slice, $slice->start, $slice->end, $strand );
}
......
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