From 63bad63af857c99667ec810ef7c22b4cc87b84af Mon Sep 17 00:00:00 2001
From: Andrew Yates <ayates@ebi.ac.uk>
Date: Wed, 19 Oct 2011 10:57:34 +0000
Subject: [PATCH] Use the default assembly if the attached coordinate system
 lacks one

---
 modules/Bio/EnsEMBL/DataFile.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/Bio/EnsEMBL/DataFile.pm b/modules/Bio/EnsEMBL/DataFile.pm
index 2f94fee5b9..ef1a40b014 100644
--- a/modules/Bio/EnsEMBL/DataFile.pm
+++ b/modules/Bio/EnsEMBL/DataFile.pm
@@ -92,6 +92,12 @@ sub path {
   if(! $base) {
     throw 'No base given';
   }
+    
+  my $cs_version = $self->coord_system()->version();
+  if(! $cs_version) {
+    my ($highest_cs) = @{$self->adaptor()->db()->get_CoordSystemAdaptor()->fetch_all()};
+    $cs_version = $highest_cs->version();
+  }
   
   my @portions;
   push(@portions, $self->adaptor()->db()->get_MetaContainer()->get_production_name());
-- 
GitLab