From 7919b913826b24c02058bae89c6b04529a976972 Mon Sep 17 00:00:00 2001
From: Ian Longden <ianl@sanger.ac.uk>
Date: Tue, 16 Mar 2010 13:33:12 +0000
Subject: [PATCH] Fix for split_Slices seq_region_lenght should be for the
 whole seq region not just for the slice

---
 modules/Bio/EnsEMBL/Utils/Slice.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/Bio/EnsEMBL/Utils/Slice.pm b/modules/Bio/EnsEMBL/Utils/Slice.pm
index c2b96718ff..10356fdadb 100644
--- a/modules/Bio/EnsEMBL/Utils/Slice.pm
+++ b/modules/Bio/EnsEMBL/Utils/Slice.pm
@@ -117,13 +117,12 @@ sub split_Slices{
 
       #any remainder gets added to the last slice of the seq_region
       $end = $slice->end if($i == $number-1);
-
       push @out, Bio::EnsEMBL::Slice->new
         (-START             => $start,
          -END               => $end,
          -STRAND            => 1,
          -SEQ_REGION_NAME   => $slice->seq_region_name,
-         -SEQ_REGION_LENGTH => $length,
+         -SEQ_REGION_LENGTH => $slice->seq_region_length,
          -COORD_SYSTEM      => $slice->coord_system,
          -ADAPTOR           => $slice->adaptor);
       $start += $multiple + 1;
-- 
GitLab