diff options
author | Zachary Sloan | 2013-02-14 17:45:10 -0600 |
---|---|---|
committer | Zachary Sloan | 2013-02-14 17:45:10 -0600 |
commit | e334da7dd55dd102c471a144ef0a63389830a256 (patch) | |
tree | b2db2326a09c604f77a68da9c9e54fac1488580f /wqflask/base | |
parent | 745bcbeabdf5794b5f3185fcd497dfce04f09b84 (diff) | |
download | genenetwork2-e334da7dd55dd102c471a144ef0a63389830a256.tar.gz |
Have marker regression results displaying as a scatterplot (just the points)
using d3.js
Diffstat (limited to 'wqflask/base')
-rwxr-xr-x | wqflask/base/data_set.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index d4e97370..0b3b5248 100755 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -77,9 +77,11 @@ class Markers(object): def add_pvalues(self, p_values): for marker, p_value in itertools.izip(self.markers, p_values): marker['p_value'] = p_value + marker['lod_score'] = -math.log10(marker['p_value']) #Using -log(p) for the LRS; need to ask Rob how he wants to get LRS from p-values marker['lrs_value'] = -math.log10(marker['p_value']) * 4.61 + class DatasetGroup(object): """ Each group has multiple datasets; each species has multiple groups. |