Description Usage Arguments Value
View source: R/bio_LD_matrix.R
Convert a dataframe that lists pairs of snps with their LD values into a symmetric LD matrix
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
)
|
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 |
Symmetric matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.