Skip to main content

Gene Environment Interaction Estimator

Project description

RHE

Randomized Haseman–Elston regression for Multi-variance Components: Python wrappers for Gene-ENviroment Interaction Estimator

Installation

pip install rhe

This package provides basic Python wrappers for the GENIE executables. Full documentation for the GENIE project, as well as sample data necessary to run the toy examples below, is available here: https://github.com/sriramlab/GENIE

Interface

This package provides the following functions:

  • rhe.run_genie
  • rhe.run_genie_mem
  • rhe.run_genie_multi_pheno

Run GENIE with a list of command line arguments

from rhe import run_genie

gen = 'path/to/test'
phen = 'path/to/test.pheno'
covar = 'path/to/test.cov'
annot = 'path/to/single.annot'
env = 'path/to/test.env'

run_genie(
    ['-g', gen, '-p', phen, '-c', covar, '-e', env, '-m', 'G+GxE+NxE', '-k', '10', '-jn', '10', '-o',
     'path/to/analysis.out', '-annot', annot, '-t', '6']
)

Run GENIE with a single string of command line arguments

from rhe import run_genie

gen = 'path/to/test'
phen = 'path/to/test.pheno'
covar = 'path/to/test.cov'
annot = 'path/to/single.annot'
env = 'path/to/test.env'

run_genie(
    f'-g {gen} -p {phen} -c {covar} -e {env} -m G+GxE+NxE -k 10 -jn 10 -o path/to/analysis.out -annot {annot} -t 6'
)

Run GENIE with using a config file

from rhe import run_genie_mem

with open('config.txt', 'w') as f:
    f.write('genotype=path/to/test\n')
    f.write('phenotype=path/to/test.pheno\n')
    f.write('covariate=path/to/test.cov\n')
    f.write('environment=path/to/test.env\n')
    f.write('annotation=path/to/single.annot\n')
    f.write('output=path/to/test.py.list.3.out\n')
    f.write('nthreads=6\n')
    f.write('num_vec=20\n')
    f.write('num_jack=10\n')
    f.write('trace=1\n')
    f.write('model=G\n')
    f.write('verbose=1\n')

run_genie_mem(
    ['--config', 'config.list.txt']
)

Citation

1. Ali Pazokitoroudi, Andrew Dahl, Noah Zaitlen, Saharon Rosset, Sriram Sankararaman.
bioRxiv 2023.12.12.571316; doi: https://doi.org/10.1101/2023.12.12.571316
2. Ali Pazokitoroudi, Yue Wu, Kathryn S. Burch, Kangcheng Hou, Aaron Zhou, 
Bogdan Pasaniuc, Sriram Sankararaman. Nature Communications (2020); doi: https://doi.org/10.1101/522003

Version

v1.0.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

rhe-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (690.9 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

rhe-1.0.0-cp312-cp312-macosx_11_0_arm64.whl (649.6 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

rhe-1.0.0-cp312-cp312-macosx_10_15_x86_64.whl (813.6 kB view hashes)

Uploaded CPython 3.12 macOS 10.15+ x86-64

rhe-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (690.9 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

rhe-1.0.0-cp311-cp311-macosx_11_0_arm64.whl (649.6 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

rhe-1.0.0-cp311-cp311-macosx_10_15_x86_64.whl (813.6 kB view hashes)

Uploaded CPython 3.11 macOS 10.15+ x86-64

rhe-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (690.9 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

rhe-1.0.0-cp310-cp310-macosx_11_0_arm64.whl (649.6 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

rhe-1.0.0-cp310-cp310-macosx_10_15_x86_64.whl (813.6 kB view hashes)

Uploaded CPython 3.10 macOS 10.15+ x86-64

rhe-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (690.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

rhe-1.0.0-cp39-cp39-macosx_11_0_arm64.whl (649.6 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

rhe-1.0.0-cp39-cp39-macosx_10_15_x86_64.whl (813.6 kB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

rhe-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (690.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

rhe-1.0.0-cp38-cp38-macosx_10_15_x86_64.whl (813.6 kB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page