What is the correct way to compute R2 for all pairs in a list of snips?
I first tried with command plink --bfile input
--r2 --ld-snps chr6_26022804_C_T,chr6_26024958_C_T
but apparently this will compute LD for each snip in the list with the snips in its neighbourhood.
Then I tried using the --extract switch in the following way:
plink --bfile input --r2 inter-chr --ld-window-r2 0.0 --extract snips.txt
This will create the following output:
CHR_A BP_A SNP_A CHR_B BP_B SNP_B R2
6 26022804 chr6_26022804_C_T 6 26024958 chr6_26024958_C_T 0.237953
But command plink --bfile input --ld chr6_26022804_C_T chr6_26024958_C_T
will output
R-sq = 0.22459
Why the difference?