From 3852e871ef6b91f569b6a615f08d2b3cadcd2987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Mon, 16 Aug 2010 12:45:00 +0000 Subject: [PATCH] In new(): don't require start to be less than end. Patch from EG. --- modules/Bio/EnsEMBL/Slice.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/Bio/EnsEMBL/Slice.pm b/modules/Bio/EnsEMBL/Slice.pm index a38abe3965..020ba6647d 100644 --- a/modules/Bio/EnsEMBL/Slice.pm +++ b/modules/Bio/EnsEMBL/Slice.pm @@ -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 } -- GitLab