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

Description Usage Arguments Value

View source: R/bio_LD_matrix.R

Description

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

Usage

1
2
3
4
5
6
7
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-tools documentation built on Jan. 7, 2022, 5:35 p.m.