aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-12-14 22:37:55 +0000
committerzsloan2022-12-14 22:37:55 +0000
commit4d4c13cf51259152cf6df0f0c02bcb23f6f9da92 (patch)
treee03422a5f98301c97974af1f83305f4f0b9123aa
parentc0c70c8bf6b37157c249451acba9ac9ee2c738a9 (diff)
downloadgenenetwork2-4d4c13cf51259152cf6df0f0c02bcb23f6f9da92.tar.gz
Add description to REST API /traits output for phenotypes
-rw-r--r--wqflask/wqflask/api/router.py3
1 files changed, 2 insertions, 1 deletions
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: