Description Usage Arguments Details Value Author(s) Examples
View source: R/functions_moloc.R
Bayesian multiple trait colocalization analysis using list of data.frames
1 2 | moloc_test(listData, prior_var = c(0.01, 0.1, 0.5), priors = c(1e-04, 1e-06,
1e-07), save.SNP.info = 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. |
priors |
are numbers, the prior for one variant to be associated with 1 trait and with each additional trait |
compute_sdY |
Estimate standard deviation of Y. If false assume sdY is 1 |
... |
parameters passed to |
Runs adjust_bfs
, config_coloc
, snp_ppa
A list of three elements: First is a data frame with 4 variables: priors ('prior'), likelihoods ('sumbf') and posteriors ('loglkl' and 'PPA') for each configuration; Second is a number, the number of SNPs in common in the region; Third is a data frame with 2 variables: SNP with the best posterior for each scenario ('coloc_ppas'), SNP name with the best posterior for each scenario ('best.snp.coloc').
Claudia Giambartolomei
Claudia Giambartolomei
1 | moloc <- moloc_test(listData) # uses default priors
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.