From e961591a44312b20030e3603691eb5441a66247d Mon Sep 17 00:00:00 2001
From: Ensembl Account <ensembl@sanger.ac.uk>
Date: Thu, 9 Dec 2010 15:59:20 +0000
Subject: [PATCH] lowercase logicname

---
 misc-scripts/density_feature/percent_gc_calc.pl      | 4 ++--
 misc-scripts/density_feature/repeat_coverage_calc.pl | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/misc-scripts/density_feature/percent_gc_calc.pl b/misc-scripts/density_feature/percent_gc_calc.pl
index 1f15a79701..e3ebcb8484 100644
--- a/misc-scripts/density_feature/percent_gc_calc.pl
+++ b/misc-scripts/density_feature/percent_gc_calc.pl
@@ -60,7 +60,7 @@ FROM density_feature df, density_type dt, analysis a, analysis_description ad
 WHERE a.analysis_id=dt.analysis_id
 AND ad.analysis_id = a.analysis_id
 AND dt.density_type_id=df.density_type_id
-AND a.logic_name='PercentGC') );
+AND a.logic_name='percentgc') );
 $sth->execute();
 
 # $sth = $db->dbc()->prepare(
@@ -95,7 +95,7 @@ my $analysis =
              -database    => "ensembl",
              -gff_source  => "percent_gc_calc.pl",
              -gff_feature => "density",
-             -logic_name  => "PercentGC",
+             -logic_name  => "percentgc",
              -description => 'Percentage of G/C bases in the sequence.',
              -display_label => 'GC content',
              -displayable   => 1 );
diff --git a/misc-scripts/density_feature/repeat_coverage_calc.pl b/misc-scripts/density_feature/repeat_coverage_calc.pl
index 6008bcc622..f26427621d 100644
--- a/misc-scripts/density_feature/repeat_coverage_calc.pl
+++ b/misc-scripts/density_feature/repeat_coverage_calc.pl
@@ -64,14 +64,14 @@ if( ! $repeat_count ) {
 #
 
 print "Deleting old PercentageRepeat features\n";
-$sth = $db->dbc->prepare("DELETE df, dt, a, ad FROM analysis_description ad, density_feature df, density_type dt, analysis a WHERE ad.analysis_id = a.analysis_id AND a.analysis_id=dt.analysis_id AND dt.density_type_id=df.density_type_id AND a.logic_name='PercentageRepeat'");
+$sth = $db->dbc->prepare("DELETE df, dt, a, ad FROM analysis_description ad, density_feature df, density_type dt, analysis a WHERE ad.analysis_id = a.analysis_id AND a.analysis_id=dt.analysis_id AND dt.density_type_id=df.density_type_id AND a.logic_name='rercentagerepeat'");
 $sth->execute();
 
 # $sth = $db->dbc()->prepare(
 #   qq(
 #   DELETE ad
 #   FROM analysis_description ad
-#   WHERE ad.display_label = 'PercentageRepeat') );
+#   WHERE ad.display_label = 'percentagerepeat') );
 # $sth->execute();
 
 my $slice_adaptor = $db->get_SliceAdaptor();
@@ -91,7 +91,7 @@ my $analysis =
        -database    => "ensembl",
        -gff_source  => "repeat_coverage_calc.pl",
        -gff_feature => "density",
-       -logic_name  => "PercentageRepeat",
+       -logic_name  => "percentagerepeat",
        -description =>
          'Percentage of repetetive elements for top level seq_regions.',
        -display_label => 'Repeats (percent)',
-- 
GitLab