Load UK Biobank LD reference matrix and variant information

load_UKBB_LDREF(
  LD_Blocks,
  locus,
  LDREF.dir,
  prefix = "ukb_b37_0.1",
  LD_matrix_ext = "RDS",
  snp_info_ext = "Rvar"
)

Arguments

LD_Blocks

A data frame of LD blocks

locus

locus ID

LDREF.dir

Directory of UKBB LD reference files

prefix

prefix name of the UKBB LD reference files

LD_matrix_ext

File extension of LD matrix files

snp_info_ext

File extension of SNP information files

Value

A list, containing LD (correlation) matrix R and a data frame with information of the variants in the LD matrix.