munger for GWAS summary statistics.
Project description
smunger
munger for GWAS summary statistics
- PyPI: https://pypi.org/project/smunger/
- Free software: MIT
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.
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
smunger-0.0.25.tar.gz
(1.4 MB
view details)
Built Distribution
smunger-0.0.25-py3-none-any.whl
(18.7 kB
view details)
File details
Details for the file smunger-0.0.25.tar.gz
.
File metadata
- Download URL: smunger-0.0.25.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f61842393fe865f52136be63c73c43e43ee86011e76466c174c510ffa00fe1d3 |
|
MD5 | 794d74cb8765ad889c948a9a85062675 |
|
BLAKE2b-256 | 29ba66ba3d304ea1ac7b37363581eac50c69068f14d3b1ec5a3fe0d19baa8c15 |
File details
Details for the file smunger-0.0.25-py3-none-any.whl
.
File metadata
- Download URL: smunger-0.0.25-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f40412bef20c605df764310155041b96c5d1ba769098bb7a638453ad0c684481 |
|
MD5 | de761ca5ef6423aae2164c4dd3e4e7b8 |
|
BLAKE2b-256 | bd19eac1f099461025bdd1d566885492fef1ddb78984c11ff9de4d89ffd242e4 |