load_UKBB_LDREF: Load UK Biobank LD reference matrix and variant information

View source: R/utils.R

load_UKBB_LDREFR Documentation

Load UK Biobank LD reference matrix and variant information

Description

Load UK Biobank LD reference matrix and variant information

Usage

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.


kevinlkx/Mapgen documentation built on April 2, 2024, 5:48 a.m.