From 295dbab2caed39ab3d2f0f3a100dacdea8dec665 Mon Sep 17 00:00:00 2001 From: Glenn Proctor <gp1@sanger.ac.uk> Date: Mon, 13 Nov 2006 13:04:07 +0000 Subject: [PATCH] Add blank factor so that features are displayed properly. --- .../RegulatoryFeatureParser/enhancer.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/misc-scripts/regulatory_regions/RegulatoryFeatureParser/enhancer.pm b/misc-scripts/regulatory_regions/RegulatoryFeatureParser/enhancer.pm index 2b33cef157..488be31bc0 100644 --- a/misc-scripts/regulatory_regions/RegulatoryFeatureParser/enhancer.pm +++ b/misc-scripts/regulatory_regions/RegulatoryFeatureParser/enhancer.pm @@ -60,6 +60,10 @@ sub parse { exit(1); } + + # link to a blank factor so the SQL still works + my $blank_factor_id = $self->get_blank_factor_id($db_adaptor); + # read file open (FILE, "<$file") || die "Can't open $file"; @@ -149,6 +153,11 @@ sub parse { $feature{EVIDENCE} = ""; + # ---------------------------------------- + # Factor - blank so that the SQL for retrieving still works + + $feature{FACTOR_ID} = $blank_factor_id; + # ---------------------------------------- # Add to object to be returned -- GitLab