Skip to content

Commit

Permalink
Only disable edit for directional interactions
Browse files Browse the repository at this point in the history
There's no need to disable edits for annotations where the only the
genotype is involved in a genotype-genotype interaction.

Fix for 970a1da

Refs #2740
  • Loading branch information
kimrutherford committed Mar 19, 2024
1 parent 5d9d840 commit c64d9f1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/Canto/Curs/Utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -328,15 +328,10 @@ sub _make_genotype_details

my $genotype_display_name = $genotype->display_name($config);

my $used_in_interactions_count =
$genotype->genotype_interactions_with_phenotype()->count() +
$genotype->genotype_interaction_genotype_bs()->count() +
$genotype->genotype_interaction_genotypes_a()->count();

my $annotations_rs = $genotype->genotype_annotations()
->search_related('genotype_interactions_with_phenotype_genotype_annotation_a');

$used_in_interactions_count += $annotations_rs->count();
my $used_in_interactions_count += $annotations_rs->count();

my @res = (
genotype_id => $genotype->genotype_id(),
Expand Down

0 comments on commit c64d9f1

Please sign in to comment.