Description Usage Arguments Value
Method to select snps so that they are not in LD.
1 2 3 4 5 6 | remove_linked_snps(
input_snps,
pop,
token = Sys.getenv("LDLINK_TOKEN"),
prune_r2_threshold = 0.05
)
|
input_snps |
a dataframe |
pop |
the population codes (or vector thereof) in which the LD is calculated e.g. c("CEU"), c("CEU","YRI") |
token |
is an access token to the nci API. if you don't have a token go here: https://ldlink.nci.nih.gov/?tab=apiaccess |
prune_r2_threshold |
a threshold (in LD r^2) for two SNPs to be considered "close" |
a list with the pruned dataframe, the list of removed SNPs, and three plots (if ggplot2 is available)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.