From 4cfd6391f7c50c83abf05675b170b73d0310aa28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karatu=C4=9F=20Ozan=20Bircan?= Date: Fri, 22 Mar 2024 16:17:19 +0000 Subject: [PATCH] fix: Return trait_description in a list (#32) * fix: Return trait_description in a list * chore: Bump version to 1.0.12 --- gwas_sumstats_tools/interfaces/metadata.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gwas_sumstats_tools/interfaces/metadata.py b/gwas_sumstats_tools/interfaces/metadata.py index dd825cf..537fc49 100755 --- a/gwas_sumstats_tools/interfaces/metadata.py +++ b/gwas_sumstats_tools/interfaces/metadata.py @@ -269,7 +269,7 @@ def _parse_ingest_study_response( # study trait_description = response.get("diseaseTrait", {}).get("trait") if trait_description: - response_parsed["trait_description"] = trait_description + response_parsed["trait_description"] = [trait_description] # # extract EFO # efo_url=response['_links']['efoTraits']['href'] diff --git a/pyproject.toml b/pyproject.toml index 8b8cdf5..d94f305 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "gwas-sumstats-tools" -version = "1.0.11" +version = "1.0.12" description = "" authors = ["jdhayhurst "] readme = "README.md"