adjust_bfs_overlap: adjust_bfs

Description Usage Arguments Value Author(s) Examples

View source: R/functions_moloc_overlap.R

Description

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

Usage

1
2
adjust_bfs_overlap(listData, prior_var = 0.15^2, overlap = FALSE,
  compute_sdY = FALSE, from_p = FALSE)

Arguments

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

Value

An array containing the log adjusted Bayes Factors for each SNP and for each SNP and each configuration combination

Author(s)

Jimmy Liu, Claudia Giambartolomei

Examples

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",,]

clagiamba/moloc documentation built on Jan. 25, 2021, 2:43 a.m.