Skip to content

Commit

Permalink
Merge pull request #15 from TheJacksonLaboratory/G3-339-error-when-ed…
Browse files Browse the repository at this point in the history
…iting-genes

G3-339: Fixing edit genes error.
  • Loading branch information
bergsalex authored Aug 6, 2024
2 parents 6bbac75 + 61865a9 commit a6c13ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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.3.4a1"
version = "1.3.5"
description = ""
authors = ["Alexander Berger <alexander.berger@jax.org>"]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions src/geneweaverdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4188,8 +4188,8 @@ def get_temp_geneset_values(geneset_id):
"""
with PooledCursor() as cursor:
cursor.execute('''SELECT gs_id, ode_gene_id, avg(src_value) as gsv_value,
count(ode_gene_id) as gsv_hits, array_accum(src_id) as gsv_source_list,
array_accum(src_value) as gsv_value_list,'t' as gsv_in_threshold, now() as gsv_date
count(ode_gene_id) as gsv_hits, array_agg(src_id) as gsv_source_list,
array_agg(src_value) as gsv_value_list,'t' as gsv_in_threshold, now() as gsv_date
FROM production.temp_geneset_value
WHERE gs_id=%s GROUP BY gs_id, ode_gene_id ORDER BY ode_gene_id;''' % (
geneset_id,))
Expand Down
4 changes: 2 additions & 2 deletions src/uploadfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,8 @@ def insert_into_geneset_value_by_gsid(gsid):
cursor.execute('''INSERT INTO extsrc.geneset_value (gs_id, ode_gene_id, gsv_value, gsv_hits, gsv_source_list,
gsv_value_list, gsv_in_threshold, gsv_date)
SELECT gs_id, ode_gene_id, avg(src_value) as gsv_value,
count(ode_gene_id) as gsv_hits, array_accum(src_id) as gsv_source_list,
array_accum(src_value) as gsv_value_list,'t' as gsv_in_threshold, now() as gsv_date
count(ode_gene_id) as gsv_hits, array_agg(src_id) as gsv_source_list,
array_agg(src_value) as gsv_value_list,'t' as gsv_in_threshold, now() as gsv_date
FROM production.temp_geneset_value
WHERE gs_id=%s GROUP BY gs_id,ode_gene_id ORDER BY ode_gene_id;''' % (gsid,))
## Update geneset sp_id and identifier
Expand Down

0 comments on commit a6c13ef

Please sign in to comment.