Skip to main content

munger for GWAS summary statistics.

Project description

smunger

pypi python Build Status codecov License: MIT

munger for GWAS summary statistics

Features

  • define column properties

    • required columns: CHR, BP, EA, NEA
    • optional columns: BETA, SE, P, EAF, MAF
    • Auxiliary columns: OR, OR_SE, Z
    • Data types
    • Data ranges
    • Allow missing values and default missing values
  • semi-automatically header mapping

    • read first five rows and display in terminal
    • guess header map by common column names
    • manually check if the mapping is correct
    • input the right column number if it is wrong
    • check if OR, OR_SE, Z are present if BETA, SE are absent
    • save the final column map to json for further munging
  • data munging

    • EA ≠ NEA
    • if EAF presents, MAF = min(EAF, 1-EAF)
    • remove duplicate SNPs with same chr-bp-sorted(EA,NEA), keep the one with lowest P
    CHR BP rsID EA NEA EAF MAF BETA SE P OR OR_SE Z
    type int int str str str float float float float float float float float
    allow null False False True False False False False True False True True False True
    null value 0 0.999 1 0
    range [1,23] (0,inf) only contains 'ACGT' only contains 'ACGT' [0,1] [0,0.5] (-inf,inf) (0, inf) (0,1) (0, inf) (0, inf) (-inf,inf)
  • liftover

    • guess genome build
    • liftover
  • annotate

Credits

This package was created with Cookiecutter and the waynerv/cookiecutter-pypackage project template.

Project details


Download files

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

Source Distribution

smunger-0.0.4.tar.gz (846.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smunger-0.0.4-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file smunger-0.0.4.tar.gz.

File metadata

  • Download URL: smunger-0.0.4.tar.gz
  • Upload date:
  • Size: 846.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for smunger-0.0.4.tar.gz
Algorithm Hash digest
SHA256 11345f9047a86a5a740ca06eaf15b54d21b8ba82379f9e83def4c35eaa379123
MD5 1908f01a0fee57a5b7b7be0d2cd6dc0c
BLAKE2b-256 d26235622e6d456d314bbefe0be165d41932765568376bbe5cd177019760e45d

See more details on using hashes here.

File details

Details for the file smunger-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: smunger-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for smunger-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cbaff4cce3913e767d9929432d573fbf5b1dacecb7dba3a7ea529554018e73ef
MD5 ea1c479b3d2c50ff0ab1c3a269ff077e
BLAKE2b-256 476c2f0ea0417abdfe55403a89e4502205459030f96909183d8314efa35ca320

See more details on using hashes here.

Supported by

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