Description Usage Arguments Value
method to remove ambiguous (palindromic and AF too close to 0.5) SNPs and select for the smallest p-value within each "query_rsid":
1 2 3 4 5 | choose_best_proxies(
proxies_and_more,
near_half_threshold = 0.08,
validate = TRUE
)
|
proxies_and_more |
the dataframe containing results from get_proxies merged with an outcome GWAS. The Alleles column is assumed to have been already "fixed" according to the "Correlated_Alleles" column (using fix_alleles). |
near_half_threshold |
The distance from AEF=0.5 that is to be considered "unimbiguous" when a palindromic SNP has it. |
validate |
a boolean indicating whether to validate the resulting gwas (TRUE by default) use FALSE for debugging. |
The original dataframe, with palindromic SNPs removed and within each query_rsid only the one with the smallest P value retained. In the case of a tie, the one with the smallest distance to the query SNP (located in POS.exp) will be chosen. In the extremely rare case of a further tie, it will be broken randomly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.