When calculating pairwise LD matrix with the following command in plink 1.9
;
plink --bfile {bfile.set} --r square ...
It is said in the plink documentation that:
By default, --r calculates and reports raw inter-variant allele count correlations, ...
Which allele in the corresponding .bim
file is being counted to calculate r (i.e. which is the coded allele)?
Thanks for the quick response. I am trying to use it for a downstream analysis which requires pairwise LD correlation matrix between variants extracted from GWAS summary statistics, and the counted allele must match the effect allele in the GWAS.
To achieve this, I'm currently running it in combination with
--a2-allele
option, as in:Will that work?
--a2-allele
works, yes.