Skip to content
Snippets Groups Projects
Commit 3852e871 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

In new(): don't require start to be less than end. Patch from EG.

parent 83e0894d
No related branches found
No related tags found
No related merge requests found
......@@ -143,9 +143,10 @@ sub new {
}
if ( !defined($start) ) { throw('START argument is required') }
if ( !defined($end) ) { throw('END argument is required') }
if ( $start > $end + 1 ) {
throw('start must be less than or equal to end+1');
}
## if ( $start > $end + 1 ) {
## throw('start must be less than or equal to end+1');
## }
if ( !defined($seq_region_length) ) { $seq_region_length = $end }
......
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