Skip to main content

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:

  1. Munge/clean all GWAS summary data before imputation

    fizi munge gwas.sumstat.gz --out cleaned.gwas

  2. Partitioning cleaned GWAS summary data into chr1 and everything else (loco-chr1).

  3. Run LDSC on locoChr to obtain tau estimates

  4. 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:

  1. Association between predicted expression and complex trait/disease FUSION
  2. Estimating local heritability or genetic correlation HESS
  3. Estimating genome-wide heritability or genetic correlation UNITY
  4. Fine-mapping using summary-data PAINTOR

Metadata

Release files for pyfizi 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfizi 0.7.2
File Size Uploaded Provenance
pyfizi-0.7.2.tar.gz 25.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyfizi 0.7.2
File Interpreter ABI Platform
pyfizi-0.7.2-py3-none-any.whl Python 3 none any Details

Total release size: 65.7 kB

Release files / pyfizi-0.7.2.tar.gz

Download URL pyfizi-0.7.2.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b3c878f4f47370cbb9e6b7719d86c5db58e4057a426e22a3232846948d9505f5
BLAKE2b-256 checksum
How to use checksums
f7129df3e9ed347f04d0de4e4e0fe1aea03383f4442a96059a66373ec6c98dc7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pyfizi-0.7.2-py3-none-any.whl

Download URL pyfizi-0.7.2-py3-none-any.whl
Size 39.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b93390a40f482d4222faca0c1748b93974df400b772236d14966c8c34344836a
BLAKE2b-256 checksum
How to use checksums
9ac487b2ed1b3a86efbe8a5224fdea76d4ebabf483424bcfa5bfb6a9768a6ff0
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for pyfizi 0.7.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page