Impute GWAS summary statistics using reference genotype data
Project description
Functionally-informed Z-score Imputation (FIZI)
FIZI leverages functional information together with reference linkage-disequilibrium (LD) to impute GWAS summary statistics (Z-score).
This README is a working draft and will be expanded soon.
Installation
The easiest way to install fizi and pyfizi is through conda and conda-forge:
conda config --add channels conda-forge
conda install pyfizi
Alternatively you can use pip for installation:
pip install pyfizi
Or directly from the github repository:
git clone git@github.com:bogdanlab/fizi.git
cd fizi
pip install .
Check that FIZI was installed by typing
fizi --help
If that did not work, and pip install pyfizi --user was specified, please check that your local user path is included in
$PATH environment variable. --user location and can be appended to $PATH
by executing
export PATH=`python -m site --user-base`/bin/:$PATH
which can be saved in ~/.bashrc or ~/.bash_profile. To reload the environment type source ~/.bashrc or source ~/.bash_profile depending where you entered it.
We currently only support Python3.7+. Python2.7 and below is not supported
Overview
fizi has two main functions: munge and impute. The munge subcommand is a pruned down version of the LDSC munge_sumstats software with a few bells and whistles needed for our imputation algorithm. The impute subcommand performs summary statistic imputation using either the functionally informed algorithm (i.e. fizi) or using only reference-LD-only algorithm (i.e. ImpG). For a full list of features please refer to the help command: fizi munge -h or fizi impute -h.
Imputing summary statistics using only reference LD
When functional annotations and LDSC estimates are not provided to fizi, it will fallback to the classic ImpG
algorithm described in ref 1. To impute missing summary statistics only for chromosome 1 using the ImpG algorithm
simply enter the commands
1. fizi munge gwas.sumstat.gz --out cleaned.gwas
2. fizi impute cleaned.gwas.sumstat.gz plink_data_path --chr 1 --out imputed.cleaned.gwas.chr1.sumstat
By default fizi requires that at least 50% of SNPs to be observed for imputation at a region. This can be changed with the --min-prop PROP flag in step 2.
Incorporating functional data to improve summary statistics imputation
Usage consists of several steps. We outline the general workflow here when the intention to perform imputation on chromosome 1 of our data:
-
Munge/clean all GWAS summary data before imputation
fizi munge gwas.sumstat.gz --out cleaned.gwas -
Partitioning cleaned GWAS summary data into chr1 and everything else (loco-chr1).
-
Run LDSC on locoChr to obtain tau estimates
-
Perform functionally-informed imputation on chr1 data using tau estimates from loco-chr
Software and support
If you have any questions or comments please contact nicholas.mancuso@med.usc.edu and/or meganroytman@gmail.com
For performing various inferences using summary data from large-scale GWASs please find the following useful software:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyfizi-0.7.2.tar.gz.
File metadata
- Download URL: pyfizi-0.7.2.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/1.6.0 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3c878f4f47370cbb9e6b7719d86c5db58e4057a426e22a3232846948d9505f5
|
|
| MD5 |
de5f6073f5a2651d522e4a25ca8cfb90
|
|
| BLAKE2b-256 |
f7129df3e9ed347f04d0de4e4e0fe1aea03383f4442a96059a66373ec6c98dc7
|
File details
Details for the file pyfizi-0.7.2-py3-none-any.whl.
File metadata
- Download URL: pyfizi-0.7.2-py3-none-any.whl
- Upload date:
- Size: 39.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/1.6.0 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b93390a40f482d4222faca0c1748b93974df400b772236d14966c8c34344836a
|
|
| MD5 |
fadec4c8c862efc6e63fa0fb54089e99
|
|
| BLAKE2b-256 |
9ac487b2ed1b3a86efbe8a5224fdea76d4ebabf483424bcfa5bfb6a9768a6ff0
|