Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about allele frequency when formatting sum stats with munge_sumstats.py #13

Open
NRRdy opened this issue Jun 22, 2023 · 0 comments

Comments

@NRRdy
Copy link

NRRdy commented Jun 22, 2023

Hello,

One of my GWAS sum stat files provides a frequency column for the alt allele, and the other provides the allele frequency for allele 1 (which I assume is the reference allele - I'm going to attempt to confirm that). Can I just provide both of these frequency to columns to munge_sumstats.py like I did below? Or do I need to convert the frequency column in one of the summary stats files so that is consistent with the other?

Thank you!

python /mnt/mfs/hgrcgrid/homes/nrr2132/ldsc/munge_sumstats.py
--sumstats /mnt/mfs/hgrcgrid/homes/nrr2132/analysis/AAGWAS/11.18.22/WithIbadan/METAL/Model2/ADGC_AA_GWAS3.AGR.MODEL2.with_ibadan.annotated.METAL.20221116_TabSeparated.txt
--N 9095
--snp MarkerName
--a1 Allele1
--a2 Allele2
--p P-value
--frq Freq1
--signed-sumstats Effect,0
--out ADGC_AFR_WithIbadan_Model2_SumStats_Munge.txt

python /mnt/mfs/hgrcgrid/homes/nrr2132/ldsc/munge_sumstats.py
--sumstats /mnt/vast/hpc/reitz_lab/REITZ_LAB/VascularTrait_SummaryStat/Lipids_GWAS_SummaryStats/Global_Lipids_Genetics_Consortium/Graham_2021/African/nonHDL_INV_AFR_HRC_1KGP3_others_ALL.meta.singlevar.results
--N 99432
--snp rsID
--a1 REF
--a2 ALT
--p pvalue
--frq POOLED_ALT_AF
--signed-sumstats EFFECT_SIZE,0
--out nonHDL_Graham2021_AFR_SumStats_munge.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant