Skip to content
Snippets Groups Projects
Commit 472d4fcb authored by Kieron Taylor's avatar Kieron Taylor :angry:
Browse files

Added a useful comment for future code archaeologists.

parent fc2f350d
No related branches found
No related tags found
No related merge requests found
......@@ -1138,7 +1138,9 @@ sub expand {
my $new_start = $self->{'start'} - $sshift;
my $new_end = $self->{'end'} + $eshift;
if (( $new_start <= 0 || $new_start > $self->seq_region_length() || $new_end <= 0 || $new_end > $self->seq_region_length() ) && ( $self->is_circular() ) ) {
# Wrap around on circular slices
if (( $new_start <= 0 || $new_start > $self->seq_region_length() || $new_end <= 0
|| $new_end > $self->seq_region_length() ) && ( $self->is_circular() ) ) {
if ( $new_start <= 0 ) {
$new_start = $self->seq_region_length() + $new_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