View source: R/subset_common_snps.R
subset_common_snps | R Documentation |
Find the SNPs that are shared between an LD matrix and another data.frame with a "SNP" column. Then remove any non-shared SNPs from both objects.
subset_common_snps(
LD_matrix,
dat,
fillNA = 0,
as_sparse = TRUE,
verbose = FALSE
)
LD_matrix |
LD matrix. |
dat |
SNP-level summary statistics subset to query the LD panel with. |
fillNA |
Value to fill LD matrix NAs with. |
as_sparse |
Convert |
verbose |
Print messages. |
data.frame
out <- echoLD::subset_common_snps(LD_matrix = echodata::BST1_LD_matrix,
dat = echodata::BST1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.