diff options
author | DannyArends | 2017-02-07 18:48:07 +0100 |
---|---|---|
committer | DannyArends | 2017-02-07 18:48:07 +0100 |
commit | 9956fcf4dde07131756ff4eb3269a1e94d805235 (patch) | |
tree | 526b714b11d88eeb5748726e88f87bdb1600090a /wqflask | |
parent | 4b70f5d556824fd342090359968bce12496a0299 (diff) | |
download | genenetwork2-9956fcf4dde07131756ff4eb3269a1e94d805235.tar.gz |
Inital python code to do PheWAS analysis from R
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/phewas/phewas.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/wqflask/wqflask/phewas/phewas.py b/wqflask/wqflask/phewas/phewas.py new file mode 100644 index 00000000..399e056c --- /dev/null +++ b/wqflask/wqflask/phewas/phewas.py @@ -0,0 +1,40 @@ +# PheWAS analysis for GN2 +# Author / Maintainer: Li Hao & Danny Arends <Danny.Arends@gmail.com> +import sys +from numpy import * +import scipy as sp # SciPy +import rpy2.robjects as ro # R Objects +import rpy2.rinterface as ri + +from base.webqtlConfig import GENERATED_IMAGE_DIR +from utility import webqtlUtil # Random number for the image +from utility import genofile_parser # genofile_parser + +import base64 +import array +import csv +import itertools + +from base import data_set +from base import trait as TRAIT + +from utility import helper_functions +from utility.tools import locate + +from rpy2.robjects.packages import importr +utils = importr("utils") + +class PheWAS(object): + def __init__(self): + print("Initialization of PheWAS") + print("Initialization of PheWAS done !") + + def run_analysis(self, requestform): + print("Starting PheWAS analysis on dataset") + print("Initialization of PheWAS done !") + + def process_results(self, results): + print("Processing PheWAS output") + template_vars = {} + return(dict(template_vars)) + |