aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask
diff options
context:
space:
mode:
authorLei Yan2013-05-23 23:01:54 +0000
committerLei Yan2013-05-23 23:01:54 +0000
commit8d0c6166a297d2cc89394649b8f56d8c6bf5d0f7 (patch)
tree104da8e98f21dc4ac73179c58fd9c17047d0d7de /wqflask/wqflask
parent953b41486b035fbe786c7d2675f7b6cf898c12da (diff)
downloadgenenetwork2-8d0c6166a297d2cc89394649b8f56d8c6bf5d0f7.tar.gz
Worked on rewriting the function in data_set.py that gets the sample
values for each trait
Diffstat (limited to 'wqflask/wqflask')
-rw-r--r--wqflask/wqflask/correlation/show_corr_results.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/wqflask/wqflask/correlation/show_corr_results.py b/wqflask/wqflask/correlation/show_corr_results.py
index ee732050..9b1843bd 100644
--- a/wqflask/wqflask/correlation/show_corr_results.py
+++ b/wqflask/wqflask/correlation/show_corr_results.py
@@ -312,9 +312,6 @@ class CorrelationResults(object):
self.process_samples(start_vars, self.this_trait.data.keys(), primary_samples)
self.target_dataset = data_set.create_dataset(start_vars['corr_dataset'])
self.target_dataset.get_trait_data()
- # Lei Yan todo
- import pdb
- pdb.set_trace()
correlation_data = collections.defaultdict(list)
for trait, values in self.target_dataset.trait_data.iteritems():
values_1 = []
@@ -327,7 +324,7 @@ class CorrelationResults(object):
values_2.append(target_value)
correlation = calCorrelation(values_1, values_2)
correlation_data[trait] = correlation
- print ('%s %s' % (trait, correlation))
+ print ('correlation result: %s %s' % (trait, correlation))
#XZ, 09/18/2008: get all information about the user selected database.
#target_db_name = fd.corr_dataset