Description Usage Arguments Value Author(s) Examples
View source: R/functions_moloc_overlap.R
Adjusted Bayes factors for each SNP and each single association and combinations of sharing/not sharing of causal variants across the datasets in the input data
1 2 | adjust_bfs_overlap(listData, prior_var = 0.15^2, overlap = FALSE,
compute_sdY = FALSE, from_p = FALSE)
|
listData |
A list of data frames to be analyzed. Each data frame must contain columns named SNP (the SNP name consistent across all the data frames), BETA, SE |
prior_var |
One or more numbers for the prior variance of the ABF. |
overlap |
Logical, do the individuals in the datasets overlap? |
compute_sdY |
Estimate standard deviation of Y. If false assume sdY is 1 |
An array containing the log adjusted Bayes Factors for each SNP and for each SNP and each configuration combination
Jimmy Liu, Claudia Giambartolomei
1 2 3 4 | ABF <- adjust_bfs_overlap(listData, overlap=FALSE, prior_var=c(0.01, 0.1, 0.5))
ABF <- adjust_bfs(listData=listData, overlap=overlap, prior_var=prior_var, compute_sdY=compute_sdY, from_p=from_p)
to view all configuration combinations for a SNP called "bp38878088"
ABF["bp38878088",,]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.