Skip to main content

smunger

pypi python

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)
    • convert OR/ORSE to BETA/SE, if BETA, SE are absent and OR, ORSE are present
    • remove duplicate SNPs with same chr-bp-sorted(EA,NEA), keep the one with lowest P
    • output: \t separated, bgzip compress, tabix index.
    • optional output: significant SNPs, munge report
    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

    • annotate rsID

Credits

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

Metadata

Release files for smunger 0.1.10

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

Source distribution (sdist)

Source distribution for smunger 0.1.10
File Size Uploaded Provenance Actions
smunger-0.1.10.tar.gz 1.4 MB Without provenance Details for smunger-0.1.10.tar.gz

Built distribution (wheel)

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

Total release size: 1.4 MB

Release files / smunger-0.1.10.tar.gz

Download URL smunger-0.1.10.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
67a4678e3ccfae3da13dd996b5e542a4847010563a559a996be066003b830fe8
BLAKE2b-256 checksum
How to use checksums
ee40e05a6202e089fa64e07f7b31def8198f1856c4b70f3249585cd57283d476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / smunger-0.1.10-py3-none-any.whl

Download URL smunger-0.1.10-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da9e783c1602ea91bcda5dfa023f201e1cde2b85947a363f3377633e18f02584
BLAKE2b-256 checksum
How to use checksums
0175e44208f2522aee67acba223c505ca83c441719edbe4843777073266bd031
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for smunger 0.1.10

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.

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files No provenance

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