From 382ab3907921e6cf7ac484f761cad388869596fc Mon Sep 17 00:00:00 2001
From: Kieron Taylor <ktaylor@ebi.ac.uk>
Date: Wed, 29 Jan 2014 17:24:05 +0000
Subject: [PATCH] ENSCORESW-834 - Improvement of circular genome support in
 AlignFeatures.

---
 modules/Bio/EnsEMBL/DBSQL/DnaAlignFeatureAdaptor.pm     | 3 ++-
 modules/Bio/EnsEMBL/DBSQL/ProteinAlignFeatureAdaptor.pm | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/Bio/EnsEMBL/DBSQL/DnaAlignFeatureAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/DnaAlignFeatureAdaptor.pm
index 7294fee27c..df1f66e548 100644
--- a/modules/Bio/EnsEMBL/DBSQL/DnaAlignFeatureAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/DnaAlignFeatureAdaptor.pm
@@ -184,7 +184,8 @@ FEATURE:
     my $hstart  = $feat->hstart();
     my $hend    = $feat->hend();
     my $hstrand = $feat->hstrand();
-    $self->_check_start_end_strand( $hstart, $hend, $hstrand );
+    my $hslice = $feat->slice();
+    $self->_check_start_end_strand( $hstart, $hend, $hstrand, $hslice );
 
     my $cigar_string = $feat->cigar_string();
     if ( !$cigar_string ) {
diff --git a/modules/Bio/EnsEMBL/DBSQL/ProteinAlignFeatureAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/ProteinAlignFeatureAdaptor.pm
index 63e3fa9276..138b792104 100644
--- a/modules/Bio/EnsEMBL/DBSQL/ProteinAlignFeatureAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/ProteinAlignFeatureAdaptor.pm
@@ -110,7 +110,8 @@ sub store{
    #sanity check the hstart and hend
    my $hstart  = $feat->hstart();
    my $hend    = $feat->hend();
-   $self->_check_start_end_strand($hstart,$hend,1);
+   my $hslice = $feat->slice();
+   $self->_check_start_end_strand($hstart,$hend,1,$hslice);
 
    my $cigar_string = $feat->cigar_string();
    if(!$cigar_string) {
-- 
GitLab