From c69cb0d18f9ff4e6e73b41a22303b394f5cc9ca0 Mon Sep 17 00:00:00 2001
From: Ian Longden <ianl@sanger.ac.uk>
Date: Thu, 30 Jun 2011 12:54:42 +0000
Subject: [PATCH] allow passing of to_slice but is ignored, needed to match
 other map calls

---
 modules/Bio/EnsEMBL/AssemblyMapper.pm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/Bio/EnsEMBL/AssemblyMapper.pm b/modules/Bio/EnsEMBL/AssemblyMapper.pm
index 5bc2077404..adf3ea7847 100644
--- a/modules/Bio/EnsEMBL/AssemblyMapper.pm
+++ b/modules/Bio/EnsEMBL/AssemblyMapper.pm
@@ -209,10 +209,10 @@ sub register_all {
 =cut
 
 sub map {
-  throw('Incorrect number of arguments.') if ( @_ != 6 );
+  throw('Incorrect number of arguments.') if (!( @_ >= 6));
 
   my ( $self, $frm_seq_region_name, $frm_start, $frm_end, $frm_strand,
-       $frm_cs )
+       $frm_cs, $to_slice )
     = @_;
 
   my $mapper  = $self->{'mapper'};
@@ -221,6 +221,7 @@ sub map {
   my $adaptor = $self->{'adaptor'};
   my $frm;
 
+
   my $seq_region_id =
     $self->adaptor()
     ->seq_regions_to_ids( $frm_cs, [$frm_seq_region_name] )->[0];
-- 
GitLab