From f44e0255f19fc581d4ae9f2ad253f01068508d90 Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Thu, 11 Oct 2012 18:04:27 -0500 Subject: Worked with the export code and Sam worked on a redesigned index page --- wqflask/wqflask/show_trait/export_trait_data.py | 10 +- wqflask/wqflask/templates/new_index_page.html | 122 +++++++++++++----------- 2 files changed, 73 insertions(+), 59 deletions(-) diff --git a/wqflask/wqflask/show_trait/export_trait_data.py b/wqflask/wqflask/show_trait/export_trait_data.py index 7c77f1c1..b1444440 100644 --- a/wqflask/wqflask/show_trait/export_trait_data.py +++ b/wqflask/wqflask/show_trait/export_trait_data.py @@ -8,8 +8,16 @@ from pprint import pformat as pf def export_sample_table(targs): #print("* keys0 args is:", targs[0].keys()) + + test_export_file = open("/home/zas1024/gene/wqflask/wqflask/show_trait/export_test.txt", "w") + for key, item in targs.iteritems(): print("[arrow] key is:", key) sample_data = json.loads(targs['json_data']) - print("sample_data is:", pf(sample_data)) \ No newline at end of file + + print("primary_samples is:", pf(sample_data['primary_samples'])) + + for key in sample_data['primary_samples'][0]: + test_export_file.write(key + ",") + test_export_file.write("\n") \ No newline at end of file diff --git a/wqflask/wqflask/templates/new_index_page.html b/wqflask/wqflask/templates/new_index_page.html index 46839690..85c63b3f 100644 --- a/wqflask/wqflask/templates/new_index_page.html +++ b/wqflask/wqflask/templates/new_index_page.html @@ -1,85 +1,91 @@ GeneNetwork - - -
-

Select and Search

- -
- - + + + + -- cgit 1.4.1