From 03cc3b4c9d0fb58c9b26fa1df1fac485b73b6e8c Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 10 Dec 2019 16:44:34 -0600 Subject: Inverted phenotype output for rqtl2 --- wqflask/wqflask/api/router.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wqflask') diff --git a/wqflask/wqflask/api/router.py b/wqflask/wqflask/api/router.py index e371a24e..eb6880f6 100644 --- a/wqflask/wqflask/api/router.py +++ b/wqflask/wqflask/api/router.py @@ -517,6 +517,8 @@ def all_sample_data(dataset_name, file_format = "csv"): line_list.append("x") results_list.append(line_list) + results_list = map(list, zip(*results_list)) + si = StringIO.StringIO() csv_writer = csv.writer(si) csv_writer.writerows(results_list) -- cgit v1.2.3