Skip to content

Commit

Permalink
test: Add debug statements (#36)
Browse files Browse the repository at this point in the history
* test: Add debug statements

* chore: Bump version to 1.0.16
  • Loading branch information
karatugo authored Mar 25, 2024
1 parent ab364d9 commit 449618a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion gwas_sumstats_tools/interfaces/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,19 +269,27 @@ 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
response_parsed["ontology_mapping"] = "|".join(
d.get("shortForm")
for d in response.get("efoTraits", [])
)

print("######################################################")
print(f"{response_parsed=}")
print(f"{replace_dict=}")
if replace_dict:
response_parsed = replace_dictionary_keys(
data_dict=response_parsed,
replace_dict=replace_dict,
)

print('------------------------------------------------------')
print(f"{response_parsed=}")
print(f"{fields_to_split=}")
print("######################################################")
if fields_to_split:
response_parsed = split_fields_on_delimiter(
data_dict=response_parsed,
Expand Down
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 = "gwas-sumstats-tools"
version = "1.0.15"
version = "1.0.16"
description = ""
authors = ["jdhayhurst <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 449618a

Please sign in to comment.