From b650956af1e491341b76bb67a466ad121ec006c0 Mon Sep 17 00:00:00 2001 From: Glenn Proctor <gp1@sanger.ac.uk> Date: Tue, 5 Aug 2008 09:51:48 +0000 Subject: [PATCH] Don't delete the GeneGC entry from attrib_type, since if it is deleted it will be re-created later in the script with a different attrib_type_id, which will be inconsistent with that in the attrib_type.txt file. --- misc-scripts/frameshift_transcript_attribs.pl | 2 +- misc-scripts/gene_gc.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc-scripts/frameshift_transcript_attribs.pl b/misc-scripts/frameshift_transcript_attribs.pl index 0286db00e2..9bd480db6f 100644 --- a/misc-scripts/frameshift_transcript_attribs.pl +++ b/misc-scripts/frameshift_transcript_attribs.pl @@ -52,7 +52,7 @@ for my $dbname ( @dbnames ) { if (!$nodelete) { print STDERR "Deleting existing 'Frameshift' transcript attributes\n"; - my $dsth = $db_adaptor->dbc()->prepare("DELETE ta, at FROM transcript_attrib ta, attrib_type at WHERE at.attrib_type_id=ta.attrib_type_id AND at.code='Frameshift'"); + my $dsth = $db_adaptor->dbc()->prepare("DELETE ta FROM transcript_attrib ta, attrib_type at WHERE at.attrib_type_id=ta.attrib_type_id AND at.code='Frameshift'"); $dsth->execute(); } diff --git a/misc-scripts/gene_gc.pl b/misc-scripts/gene_gc.pl index 74829f3b99..737138b3aa 100644 --- a/misc-scripts/gene_gc.pl +++ b/misc-scripts/gene_gc.pl @@ -81,7 +81,7 @@ sub delete_existing { my $dba = shift; print STDERR "Deleting existing 'GeneGC' gene attributes\n"; - my $dsth = $dba->dbc()->prepare("DELETE ga, at FROM gene_attrib ga, attrib_type at WHERE at.attrib_type_id=ga.attrib_type_id AND at.code='GeneGC'"); + my $dsth = $dba->dbc()->prepare("DELETE ga FROM gene_attrib ga, attrib_type at WHERE at.attrib_type_id=ga.attrib_type_id AND at.code='GeneGC'"); $dsth->execute(); } -- GitLab