aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-07-20 20:54:45 +0000
committerzsloan2022-07-20 20:54:45 +0000
commit7128050424f1e928a08011186c62d39c47e56bc0 (patch)
tree378c27dd55fffe0ded64002ab730d6159dfa9249
parent36a7408d2c5cf3b8b7ebb2168fd34415e37184d0 (diff)
downloadgenenetwork2-7128050424f1e928a08011186c62d39c47e56bc0.tar.gz
Add marker hmac to mapping result markers so it can be directly passed to the table
-rw-r--r--wqflask/wqflask/marker_regression/run_mapping.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/wqflask/wqflask/marker_regression/run_mapping.py b/wqflask/wqflask/marker_regression/run_mapping.py
index 35678df9..af229f5c 100644
--- a/wqflask/wqflask/marker_regression/run_mapping.py
+++ b/wqflask/wqflask/marker_regression/run_mapping.py
@@ -29,10 +29,7 @@ from base.trait import GeneralTrait
from base import data_set
from base import species
from base import webqtlConfig
-from utility import webqtlUtil
-from utility import helper_functions
-from utility import Plot, Bunch
-from utility import temp_data
+from utility import webqtlUtil, helper_functions, hmac, Plot, Bunch, temp_data
from utility.benchmark import Bench
from wqflask.marker_regression import gemma_mapping, rqtl_mapping, qtlreaper_mapping, plink_mapping
from wqflask.show_trait.SampleList import SampleList
@@ -319,6 +316,7 @@ class RunMapping:
self.annotations_for_browser = []
highest_chr = 1 # This is needed in order to convert the highest chr to X/Y
for marker in results:
+ marker['hmac'] = hmac.data_hmac('{}:{}'.format(marker['name'], self.dataset.group.name + "Geno"))
if 'Mb' in marker:
this_ps = marker['Mb'] * 1000000
else: