From c40f8711ab301f46c446db9c162d3806ea1c1f48 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 3 Jan 2022 14:54:03 +0300 Subject: Use the correct letter case for the keys * Use the correct case for the keys inorder to retrieve the correct values. --- gn3/computations/partial_correlations.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/gn3/computations/partial_correlations.py b/gn3/computations/partial_correlations.py index 70b6945..9bad12a 100644 --- a/gn3/computations/partial_correlations.py +++ b/gn3/computations/partial_correlations.py @@ -555,16 +555,13 @@ def trait_for_output(trait): "trait_name": trait["trait_name"], "symbol": trait.get("symbol"), "description": trait.get("description"), - "pre_publication_description": trait.get( - "pre_publication_description"), + "pre_publication_description": trait.get("Pre_publication_description"), "post_publication_description": trait.get( - "post_publication_description"), - "original_description": trait.get( - "original_description"), - "authors": trait.get("authors"), - "year": trait.get("year"), - "probe_target_description": trait.get( - "probe_target_description"), + "Post_publication_description"), + "original_description": trait.get("Original_description"), + "authors": trait.get("Authors"), + "year": trait.get("Year"), + "probe_target_description": trait.get("Probe_target_description"), "chr": trait.get("chr"), "mb": trait.get("mb"), "geneid": trait.get("geneid"), -- cgit v1.2.3