aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/my_pylmm/pyLMM/process_plink.py
blob: 1274fe50c6bfcdc37ae290572870cafe21e9fb34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from __future__ import absolute_import, print_function, division

import cPickle as pickle
import redis
Redis = redis.Redis()

from wqflask.my_pylmm.pyLMM import lmm

lmm_vars_pickled = Redis.get("lmm_vars")


plink_pickled = Redis.lpop("plink_inputs")

plink_data = pickle.loads(plink_pickled)

identifier = plink_data['identifier']
print("identifier: ", identifier)



ps, ts = lmm.human_association(snp,
                                n,
                                keep,
                                lmm_ob,
                                pheno_vector,
                                covariate_matrix,
                                kinship_matrix,
                                refit)