Apologies- please see the updated version of my command:
./plink2/plink2 --bgen ukb_imp_chr1_v3_qc2.bgen ref-unknown --extract rsids --indep-pairwise 1000 1 0.8 --out samplesnp_ld
Ultimately I am trying to do LD clumping on a list of variants contained in the rsids file.
This seems much more intuitive with plink1.9:
./plink --r2 --bgen ukb_imp_chr1_v3_qc2.bgen --sample ukb_imp_chr1_v3_qc2.sample --ld-snp-list rsids --ld-window-r2 0.8 --out samplesnp_ld
Only to find 1.9 does not really seem to work for this task...
Error: BGEN v1.2 input requires PLINK 2.0 (under development as of this
writing). Use qctool2 or bgenix to downcode to BGEN v1.1 if you want to
process this data with PLINK 1.9.
Could you give a hint as to how to perform LD clumping on bgen files?