Learn R Programming

coloc (version 5.2.3)

finemap.abf: Bayesian finemapping analysis

Description

Bayesian finemapping analysis

Usage

finemap.abf(dataset, p1 = 1e-04)

Value

a data.frame:

  • an annotated version of the input data containing log Approximate Bayes Factors and intermediate calculations, and the posterior probability of the SNP being causal

Arguments

dataset

a list with specifically named elements defining the dataset to be analysed. See check_dataset for details.

p1

prior probability a SNP is associated with the trait 1, default 1e-4

Author

Chris Wallace

Details

This function calculates posterior probabilities of different causal variant for a single trait.

If regression coefficients and variances are available, it calculates Bayes factors for association at each SNP. If only p values are available, it uses an approximation that depends on the SNP's MAF and ignores any uncertainty in imputation. Regression coefficients should be used if available.