From c2e391cdccd1a0a4cbaabc25e4a51d542c6dc950 Mon Sep 17 00:00:00 2001
From: Glenn Proctor <gp1@sanger.ac.uk>
Date: Thu, 28 Jul 2005 12:11:02 +0000
Subject: [PATCH] regulatory_feature_object now has influence column as well

---
 misc-scripts/regulatory_regions/load_regulatory.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/misc-scripts/regulatory_regions/load_regulatory.pl b/misc-scripts/regulatory_regions/load_regulatory.pl
index fb1c7fc2dc..857a5b2e40 100755
--- a/misc-scripts/regulatory_regions/load_regulatory.pl
+++ b/misc-scripts/regulatory_regions/load_regulatory.pl
@@ -125,8 +125,10 @@ while (<FILE>) {
   # for miRNA_target (and possibly others) where individual features don't
   # have a unique name, create a composite one. Also set influence for each type.
   my $feature_name;
+  my $influence;
   if ($feature =~ /miRNA_target/i) {
     $feature_name = $id .":" . $seq;
+    $influence = "negative";
   }
 
   print STDERR "No feature name for $seq of type $feature on $id.\n" if (!$feature_name);
@@ -149,6 +151,7 @@ while (<FILE>) {
     $rr_obj_sth->execute($rr_id,
 			 $ensembl_type,
 			 $ensembl_object->dbID(),
+			 $influence,
 			 "");                     # no evidence yet
 
     $count++;
-- 
GitLab