cophescan1.4.2 package

Adaptation of the Coloc Method for PheWAS

metrop_run

Run the hierarchical mcmc model to infer priors

multitrait.simplify

Simplifying the output obtained from cophe.multitrait, `cophe.single...

pars_init

Initiate parameters alpha, beta and gamma

pars2pik

Conversion of parameters alpha, beta and gamma to pnk, pak and pck

per.snp.priors

per.snp.priors

piks

List of priors: pn, pa and pc over all iterations

plot_trait_manhat

Plot region Manhattan for a trait highlighting the queried variant

posterior_prob

List of posterior probabilities: Hn, Ha and Hc over all iterations

prepare_plot_data

Prepare data for plotting

propose

Proposal distribution

logpriors

Calculate log priors

logsum

logsum

logsumexp

Log sum

cophe.hyp.predict

Predict cophescan hypothesis for tested associations

adjust_priors

adjust_priors

average_piks

Average of priors: pnk, pak and pck

average_piks_list

Average of priors: pnk, pak and pck from list (memory intensive)

average_posterior_prob

Average of posterior probabilities: Hn, Ha and Hc

average_posterior_prob_list

Average of posterior probabilities: Hn, Ha and Hc from list (memory in...

combine.bf

combine.bf

cophe.bf_bf

extract data through Bayes factors

cophe.multitrait

Run cophescan on multiple traits at once

cophe.prepare.dat.single

Prepare data for cophe.single

cophe.prepare.dat.susie

Prepare data for cophe.susie

cophe.single.lbf

cophe.single.lbf

cophe.single

Bayesian cophescan analysis using Approximate Bayes Factors

cophe.susie.lbf

cophe.susie.lbf

logpost

Log posterior calculation

cophe.susie

run cophe.susie using susie to detect separate signals

cophe_heatmap

Heatmap of multi-trait cophescan results

cophe_plot

cophe_plots showing the Ha and Hc of all traits and labelled above the...

cophescan-package

The 'cophescan' package.

get_beta

Extract beta and p-values of queried variant

get_posterior_prob

Calculation of the posterior prob of Hn, Ha and Hc

Hc.cutoff.fdr

Estimate the Hc.cutoff for the required FDR

hypothesis.priors

hypothesis.priors

logd_alpha

dnorm for alpha

logd_beta

dgamma for beta

logd_gamma

dgamma for gamma

loglik

Log likelihood calculation

run_metrop_priors

Run the hierarchical Metropolis Hastings model to infer priors

sample_alpha

sample alpha

sample_beta

sample beta

sample_gamma

sample gamma

summary.cophe

print the summary of results from cophescan single or susie

target

Target distribution

A Bayesian method for Phenome-wide association studies (PheWAS) that identifies causal associations between genetic variants and traits, while simultaneously addressing confounding due to linkage disequilibrium. For details see Manipur et al (2024, Nature Communications) <doi:10.1038/s41467-024-49990-8>.

  • Maintainer: Ichcha Manipur
  • License: GPL-3
  • Last published: 2025-07-30