Wrapper for snpgdsLDMat to compute r2
snprelate_ld(
gdata,
window_size = 0,
min_r2 = 0,
snps_idx = NULL,
scans_idx = NULL,
threads = 1,
quiet = FALSE
)A data frame with columns SNP_A, SNP_B, R2 for r2 >= min_r2
A GenotypeData object
Max number of SNPs in LD window, 0 for no window
Minimum r2 value to report
Indices of snps to use
Indices of scans to use
The number of threads to use
Whether to be quiet