From 6ee1217b2560b6b7b75f5df748b452db6ddf4247 Mon Sep 17 00:00:00 2001
From: Glenn Proctor <gp1@sanger.ac.uk>
Date: Tue, 27 Mar 2007 09:52:17 +0000
Subject: [PATCH] Fixed typo (= instead of eq) that was causing search regions
 to be deleted when enhancers were loaded!

---
 .../regulatory_regions/RegulatoryFeatureParser/BaseParser.pm    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc-scripts/regulatory_regions/RegulatoryFeatureParser/BaseParser.pm b/misc-scripts/regulatory_regions/RegulatoryFeatureParser/BaseParser.pm
index ff672e5d99..fc84107dcb 100644
--- a/misc-scripts/regulatory_regions/RegulatoryFeatureParser/BaseParser.pm
+++ b/misc-scripts/regulatory_regions/RegulatoryFeatureParser/BaseParser.pm
@@ -37,7 +37,7 @@ sub delete_existing {
   $sth->execute($t);
 
   # Delete search regions; they have a different analysis_id
-  if ($type = "cisred") {
+  if ($type eq "cisred") {
     my $sr_type = $type . "_search";
     die "Can't find analysis for $sr_type " unless validate_type($db_adaptor, $sr_type);
     my $anal_sth = $db_adaptor->dbc->prepare("SELECT analysis_id FROM analysis WHERE LOWER(logic_name)=?");
-- 
GitLab