ld_list_to_matrix: Convert a paired list of LD values to a symmetric matrix

View source: R/bio_LD_matrix.R

ld_list_to_matrixR Documentation

Convert a paired list of LD values to a symmetric matrix

Description

Convert a dataframe that lists pairs of snps with their LD values into a symmetric LD matrix

Usage

ld_list_to_matrix(
  data,
  SNP_A = "SNP_A",
  SNP_B = "SNP_B",
  R = "R",
  missing_value = NA
)

Arguments

data

Input dataframe

SNP_A

Column name containing names of SNP_A

SNP_B

Column name containing names of SNP_B

R

Column name containing R (or R2) values

missing_value

Value to use to fill missing entries

Value

Symmetric matrix


adamleejohnson/R-ajtools documentation built on April 4, 2022, 7:24 a.m.