prepare data for running magma from unorganized gwas data
Project description
cleanmagma
- To retrieve the information from GWAS summary statistics file for running magma.
- To run magma with snp to gene annotation, gene level and gene set level enrichment.
- To summarize the results for the same input gmt files (named gene list) enriched to multiple GWAS data and plot a heatmap with rows are given input gmt names and columns are different GWAS file names.
Examples:
from prepmagma import res
from prepmama import db
#work_folderwhere the GWAS summary files are located
#target_folder where the used GWAS summary files are moved to
#filename is the single GWAS summary file you want to work on
db.run_single_gwas(work_folder, filename, target_folder, p = ['p'], n=['n_ownbw'], rsid=['rsid'], chromosome=['chr'], position=['pos'])
#res_folder is where all the results located
#summary_file is a tsv combining the results in res_folder
#pattern for filtering VARIABLE to be combined
df = res.compile_res(res_folder, summary_file, pattern)
res.heatmap(df, 'gsea/heatmap_common.pdf')
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
prepmagma-0.2.2.tar.gz
(25.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prepmagma-0.2.2.tar.gz.
File metadata
- Download URL: prepmagma-0.2.2.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61777a79123f070a3548090719181d05b6e60fd33780deae65f61c8262ad6205
|
|
| MD5 |
08551bb5dcf0523ce70a0e0a7571b76b
|
|
| BLAKE2b-256 |
60c6de4ca6a5f42f0e59c43a2364ed95cb432ca7b3950edcd855fb89b21c7940
|
File details
Details for the file prepmagma-0.2.2-py3-none-any.whl.
File metadata
- Download URL: prepmagma-0.2.2-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0679a75ba7e1e8e104df26e7b5de53b695a43c749c8c9525cefa57d0e2f335ff
|
|
| MD5 |
12514661ad7f116004e5e4986b20c266
|
|
| BLAKE2b-256 |
aab7892edac5f3a5678c2407c1ce3c2e6b04273ff85dd45fff06ca28394aa236
|