plink2 --bfile $in_folder/autosome_imp --r2-unphased 'inter-chr' 'square' --ld-window-r2 0 --ld-snp-list snp_list.txt
(snp_list.txt is the file having the list of snps).
Output
PLINK v2.00a3LM 64-bit Intel (25 Feb 2020) www.cog-genomics.org/plink/2.0/
(C) 2005-2020 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to plink2.log.
Options in effect:
--bfile /labs/UKBioBank/data/genetic/imp/bed_info_0.8/bed/autosome_imp
--ld-snp-list snp_list.txt
--ld-window-r2 0
--r2-unphased inter-chr square
Start time: Wed May 22 17:02:08 2024
Error: Unrecognized flag ('--ld-snp-list').
For more info, try "plink2 --help <flag name>" or "plink2 --help | more".
Thanks.
DJon