From b46f1df0c5f0ac31bd885874f57b7fcb66b3461b Mon Sep 17 00:00:00 2001 From: Alessandro Vullo <avullo@ebi.ac.uk> Date: Mon, 25 Apr 2016 14:31:00 +0100 Subject: [PATCH] [ENSCORESW-1718]. Make method circular slice compliant. Moreover, the check is redundant in the context of the fetch_by_location calling method, since it already performs the same check. --- modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm index ec6f65e2e9..904069beb3 100644 --- a/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm +++ b/modules/Bio/EnsEMBL/DBSQL/SliceAdaptor.pm @@ -636,9 +636,6 @@ sub parse_location_to_values { } } - if(defined $start && defined $end && $start > $end) { - throw "Cannot request a slice whose start is greater than its end. Start: $start. End: $end" unless $no_errors; - } } return ($seq_region_name, $start, $end, $strand); -- GitLab