diff options
author | Alexander Kabui | 2021-10-09 22:00:26 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-10-09 22:00:26 +0300 |
commit | 1b77d2417ba71ad7e2274429dd20c9272cb0f582 (patch) | |
tree | a2f891ab267dca1bfcb74f32ada41cd71aeb78b1 | |
parent | 599ac567990a3881dc3821ad226a18ce538d1a17 (diff) | |
download | genenetwork2-1b77d2417ba71ad7e2274429dd20c9272cb0f582.tar.gz |
function to fetch trait data
-rw-r--r-- | wqflask/wqflask/wgcna/gn3_wgcna.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wqflask/wqflask/wgcna/gn3_wgcna.py b/wqflask/wqflask/wgcna/gn3_wgcna.py index 225bef22..f7ed4cef 100644 --- a/wqflask/wqflask/wgcna/gn3_wgcna.py +++ b/wqflask/wqflask/wgcna/gn3_wgcna.py @@ -3,6 +3,16 @@ and process data to be rendered by datatables """ +def fetch_trait_data(requestform): + """fetch trait data""" + db_obj = SimpleNamespace() + get_trait_db_obs(db_obj, + [trait.strip() + for trait in requestform['trait_list'].split(',')]) + + return process_dataset(db_obj.trait_list) + + def process_wgcna_data(response): """function for processing modeigene genes for create row data for datataba""" |