View source: R/bio_LD_matrix.R
ld_list_to_matrix | R Documentation |
Convert a dataframe that lists pairs of snps with their LD values into a symmetric LD matrix
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.