Skip to content

Commit

Permalink
Add a few comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed Apr 20, 2024
1 parent 6a88c28 commit 711da69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Canto/DBUpgrade.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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 });
Expand Down

0 comments on commit 711da69

Please sign in to comment.