get_lead_r2 | R Documentation |
Add new columns r and r2 containing the degree of LD in each SNP (row) with the lead GWAS/QTL SNP.
get_lead_r2(
dat,
LD_matrix = NULL,
fillNA = 0,
LD_format = "matrix",
verbose = TRUE
)
dat |
SNP-level data. |
LD_matrix |
LD matrix. |
fillNA |
Value to fill NAs with in r/r2 columns. |
LD_format |
The format of the provided |
verbose |
Print messages. |
data.table with the columns r and r2.
dat2 <- echoLD::get_lead_r2(dat = echodata::BST1,
LD_matrix = echodata::BST1_LD_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.