I'm trying to convert plink output to the .sumstats
format for use with LD score regression and I don't understand how plink is coding alleles. The .sumstats
files look like
SNP A1 A2 Z N
rs3131969 A G 0.003 17115.000
We are running GWAS for quantitative traits using plink1.9:
./plink --bfile ../cal/chrom$i --covar sexAgeCovar10.pcs --covar-name age sex C1 C2 C3 C4 --linear standard-beta
How can I convert the A1 column from the .assoc
output files to A1 and A2 columns like above?
We are using plink2 for case/control GWAS:
./plink2f --bfile ../cal/chrom$i --covar keep.10pcs --covar-name C1 C2 C3 C4 --glm firth-fallback
Similarly, how can I convert the REF and ALT1 columns from the .hybrid
output file to A1 and A2 columns like above?