From 4d4c13cf51259152cf6df0f0c02bcb23f6f9da92 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 14 Dec 2022 22:37:55 +0000 Subject: Add description to REST API /traits output for phenotypes --- wqflask/wqflask/api/router.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wqflask/wqflask/api/router.py b/wqflask/wqflask/api/router.py index 1e0c53a7..d7eeac34 100644 --- a/wqflask/wqflask/api/router.py +++ b/wqflask/wqflask/api/router.py @@ -417,6 +417,7 @@ def fetch_traits(dataset_name, file_format="json"): "Chr", "Mb", "Sequence", "Source"] else: query = """SELECT PublishXRef.Id, + Phenotype.`Original_description`, Publication.`Authors`, Publication.`Year`, Publication.`PubMed_ID`, @@ -440,7 +441,7 @@ def fetch_traits(dataset_name, file_format="json"): ORDER BY PublishXRef.Id""" - field_list = ["Id", "Authors", "Year", "PubMedID", "Mean", + field_list = ["Id", "Description", "Authors", "Year", "PubMedID", "Mean", "LRS", "Additive", "Locus", "Chr", "Mb"] if 'limit_to' in request.args: -- cgit v1.2.3