aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/datasets.py
diff options
context:
space:
mode:
authorAlexander Kabui2021-03-31 23:55:52 +0300
committerAlexander Kabui2021-03-31 23:55:52 +0300
commit9d7839a75f158cb9ca46d81a5384ad42374ddd26 (patch)
treee181b25e8dff39145be3c8ca73ed1d74873e0def /gn3/api/datasets.py
parentf065ea860f8001942bbf7c61eb49e515d358d2eb (diff)
downloadgenenetwork3-9d7839a75f158cb9ca46d81a5384ad42374ddd26.tar.gz
add fetch dataset strain id,strain name and unittests
Diffstat (limited to 'gn3/api/datasets.py')
-rw-r--r--gn3/api/datasets.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/gn3/api/datasets.py b/gn3/api/datasets.py
index 874c76a..d15aad7 100644
--- a/gn3/api/datasets.py
+++ b/gn3/api/datasets.py
@@ -23,6 +23,17 @@ def create_dataset_api(dataset_name, dataset_type=None):
dataset_type=dataset_type, dataset_name=dataset_name)
results = {
- "dataset":new_dataset
+ "dataset": new_dataset
}
return jsonify(results)
+
+
+@dataset.route("/fetch_traits_data/<dataset_name>/<dataset_type>")
+def fetch_traits_data(dataset_name, dataset_type):
+ """endpoints fetches sample for each trait in\
+ a dataset"""
+ # what actually brings speed issues in correlation
+ _query_values = dataset_name, dataset_type
+
+ return jsonify({})
+ \ No newline at end of file