diff --git a/lib/Canto/DBUpgrade.pm b/lib/Canto/DBUpgrade.pm index bc1157c4f..d8a297b4e 100644 --- a/lib/Canto/DBUpgrade.pm +++ b/lib/Canto/DBUpgrade.pm @@ -800,6 +800,7 @@ CREATE TABLE genotype_interaction_with_phenotype ( my %promoters_to_delete = (); + # change promoter systematic IDs to gene names while (defined (my $allele = $allele_rs->next())) { my $allele_promoter_gene = $allele->promoter_gene(); @@ -815,6 +816,7 @@ CREATE TABLE genotype_interaction_with_phenotype ( } } + # remove un-annotated promoters from the session for my $promoter_gene (keys %promoters_to_delete) { my $gene = $curs_schema->resultset('Gene') ->find({ primary_identifier => $promoter_gene });