Skip to content

Commit

Permalink
Merge pull request #24 from TheJacksonLaboratory/G3-457-view-similar-…
Browse files Browse the repository at this point in the history
…genesets-button-broken

G3-457: Fix geneset has no hom_ids KeyError
  • Loading branch information
bergsalex authored Sep 24, 2024
2 parents 49ed317 + 5173546 commit 43420f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "geneweaver-legacy"
version = "1.4.6"
version = "1.4.7"
description = ""
authors = ["Alexander Berger <[email protected]>"]
readme = "README.md"
Expand Down
3 changes: 2 additions & 1 deletion src/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -3226,7 +3226,8 @@ def calculate_jaccard(gs_id, genesets):
gs1 = geneweaverdb.get_geneset_hom_ids(gs_id)
gs2s = geneweaverdb.get_genesets_hom_ids(genesets)
for g in genesets:
jaccards[g] = jaccard(gs1, gs2s[g])
if g in gs2s:
jaccards[g] = jaccard(gs1, gs2s[g])
return jaccards


Expand Down

0 comments on commit 43420f8

Please sign in to comment.