aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
authorZachary Sloan2014-06-25 20:19:02 +0000
committerZachary Sloan2014-06-25 20:19:02 +0000
commitdf6a70c9a06bc30856a1bc46023bd67e5325f5c9 (patch)
treec7ed438dbc627043785337c0a81ce7988e16d50c /wqflask/base/trait.py
parent33cf7a7dafc0bf338f98eb793ffd87d4442a58fd (diff)
downloadgenenetwork2-df6a70c9a06bc30856a1bc46023bd67e5325f5c9.tar.gz
Added Karl's correlation matrix code
Improved the "scatterplot matrix" feature on the trait page so that it matches the chosen trait against every selected trait
Diffstat (limited to 'wqflask/base/trait.py')
-rwxr-xr-xwqflask/base/trait.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 3f80d4a4..2bbd1f2a 100755
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -645,7 +645,7 @@ def get_sample_data():
trait_ob = GeneralTrait(name=trait, dataset_name=dataset)
- return json.dumps({key: value.value for key, value in trait_ob.data.iteritems() })
+ return json.dumps([trait, {key: value.value for key, value in trait_ob.data.iteritems() }])
#jsonable_sample_data = {}
#for sample in trait_ob.data.iteritems():