Skip to main content

A collection of handy tools for GWAS

Project description

gwaslab_logo A collection of handy python scripts for GWAS. Just want to make life eaiser and save myself from repetitive work.

For usage, please check GWASLab document at https://cloufield.github.io/gwaslab/ .

What you can do with gwaslab:

Standardization, Normalization & Harmonization

  • CHR and POS notation standardization

  • Variant POS and allele normalization

  • Genome build : Liftover

  • Reference allele alignment using a reference genome sequence

  • rsID assignment based on CHR, POS, REF and ALT

  • CHR POS assignment based on rsID using a reference VCF

  • Palindromic SNPs and indels strand inference using a reference VCF

  • Check allele frequency discrepancy using a reference VCF

Quality control, Value conversion & Filtering

  • Statistics sanity check

  • Equivalent statistics conversion

    • BETA/SE , OR/OR_95L/OR_95U

    • P, Z, CHISQ, MLOG10

  • Extract/exclude hapmap3 variants

  • Extract/exclude MHC variants

  • Filtering values.

Visualization

  • Mqq plot : Manhattan plot and QQ plot side by side

  • Heatmap : ldsc-rg genetic correlation matrix

  • Scatter Plot : variant effect size comparison with sumstats

  • Scatter Plot : allele frequency comparison

Other Utilities

  • Read ldsc h2 or rg outputs directly as DataFrames

  • Extract lead SNPs given a window size

  • Logging : keep a complete record of manipulations from raw data to munged data

  • Formating GWAS sumstats in certain formats

    • LDSC / MAGMA / METAL / MR-MEGA / FUMA ...

Requirements

  • Python >= 3
  • pyVCF >= 0.6.8
  • Biopython >= 1.79
  • liftover >= 1.1.13
  • pandas >= 1.2.4
  • numpy >= 1.21.2
  • matplotlib>3.5
  • seaborn >= 0.11.1
  • scipy >= 1.6.2
  • adjustText

Install

pip install gwaslab

Current version: 3.0.0

Usage

For usage, please check GWASLab document at https://cloufield.github.io/gwaslab/ .

Update Log

  • 3.0.0 first complete version

  • 1.0.0 implemented Sumstats object

  • 0.0.5 - 0.0.6

  • added compare_effect, read_ldsc

  • 0.0.4

    • added mqqplot feature
    • fixed gtesig algorithm
    • recreated mplot and qqplot

For more information: https://gwaslab.com/

Project details


Release history Release notifications | RSS feed

This version

3.1.0

Download files

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

Source Distribution

gwaslab-3.1.0.tar.gz (20.6 MB view details)

Uploaded Source

Built Distribution

gwaslab-3.1.0-py3-none-any.whl (20.6 MB view details)

Uploaded Python 3

File details

Details for the file gwaslab-3.1.0.tar.gz.

File metadata

  • Download URL: gwaslab-3.1.0.tar.gz
  • Upload date:
  • Size: 20.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for gwaslab-3.1.0.tar.gz
Algorithm Hash digest
SHA256 1c62e94f0682d02ddb214faa5b900218c70239a4047c631d2020db9c5b6069ce
MD5 d3f7d4a59d0a9a514eff3450f963a8ce
BLAKE2b-256 eb5ad36ccc530a8e81966b0210f0a94364c878a9e3a4c8ad8f4593018c9d7309

See more details on using hashes here.

File details

Details for the file gwaslab-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: gwaslab-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for gwaslab-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0de3ecb09c9988566e7cea2096407895cc2eef84f4de254cfa22306e4b42956d
MD5 d4d42f72017975c52af2a1145e311f98
BLAKE2b-256 754525fa1e861490d7024c8088c2d12149d12a90a6f7d7fc43a8db6d1913fa42

See more details on using hashes here.

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