From 6d5d994d04f9928a7df690c029a3f828ead7b0fa Mon Sep 17 00:00:00 2001
From: Graham McVicker <mcvicker@sanger.ac.uk>
Date: Wed, 28 Jan 2004 19:44:31 +0000
Subject: [PATCH] fixed Danio converter I hope.  Need to test still.

---
 misc-scripts/surgery/SeqStoreConverter/DanioRerio.pm | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/misc-scripts/surgery/SeqStoreConverter/DanioRerio.pm b/misc-scripts/surgery/SeqStoreConverter/DanioRerio.pm
index db0d634888..705b78c34f 100644
--- a/misc-scripts/surgery/SeqStoreConverter/DanioRerio.pm
+++ b/misc-scripts/surgery/SeqStoreConverter/DanioRerio.pm
@@ -200,14 +200,6 @@ sub create_seq_regions {
     #insert into seq_region table
     $insert_sth->execute($name, $cs_id, $length);
     #copy old/new mapping into temporary table
-
-    #avoid trying to add the same chromosome id twice into the mappings
-    #not all supercontigs make up 'supercontigs' in the chromosome table,
-    #some were used to construct chromosomes, and we don't want these ids.
-    if(!$chr_id_added{$old_id}) {
-      $tmp_chr_insert_sth->execute($old_id, $insert_sth->{'mysql_insertid'});
-      $chr_id_added{$old_id} = 1;
-    }
    $tmp_supercontig_insert_sth->execute($name,$insert_sth->{'mysql_insertid'});
   }
 
@@ -216,7 +208,6 @@ sub create_seq_regions {
   $tmp_supercontig_insert_sth->finish();
   $tmp_clone_insert_sth->finish();
   $insert_sth->finish();
-
 }
 
 
-- 
GitLab