From e334da7dd55dd102c471a144ef0a63389830a256 Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Thu, 14 Feb 2013 17:45:10 -0600 Subject: Have marker regression results displaying as a scatterplot (just the points) using d3.js --- wqflask/base/data_set.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wqflask/base') 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. -- cgit v1.2.3