Description Usage Arguments Value References See Also Examples
View source: R/summary_functions.R
Run the forest_cpbayes function to create a forest plot that presents the pleiotropy result obtained
by cpbayes_uncor or cpbayes_cor.
| 1 | forest_cpbayes(mcmc_output, level = 0.05, PPAj_cutoff = 0.01)
 | 
| mcmc_output | A list returned by either
 | 
| level | A numeric value. (1-level)% confidence interval of the unknown true genetic effect (beta/log(odds ratio)) on each trait is plotted in the forest plot. Default choice is 0.05. | 
| PPAj_cutoff | A numeric value. It's a user-specified threshold of PPAj (trait-specific posterior probability of association). Only those traits having PPAj values above this cut-off are included in the forest plot. So, the choice of this variable as '0.0' includes all traits in the forest plot. Default is 0.01. | 
The output produced by this function is a diagram file in .pdf format. The details of the diagram are as follows:
| file_name | The pdf file is named after the genetic variant. So, if the argument ‘Variant’
in  | 
| Column1 | First column in the figure specifies the name of the phenotypes. | 
| Column2 | Second column provides the trait-specific univariate association p-value for a trait. | 
| Column3 | Third column provides the trait-specific posterior probability of association (PPAj) produced by CPBayes. | 
| Column4 | Fourth column states whether a phenotype was selected in the optimal subset of associated/non-null traits detected by CPBayes. If a phenotype was not selected, selected and positively associated, selected and negatively associated, its association status is stated as null, positive and negative, respectively. | 
| Column5 | In the right section of the figure, the primary eatimate and confidence interval of the beta/log odds ratio parameter for a trait is plotted. | 
Majumdar A, Haldar T, Bhattacharya S, Witte JS (2018) An efficient Bayesian meta analysis approach for studying cross-phenotype genetic associations. PLoS Genet 14(2): e1007139.
| 1 2 3 4 5 6 7 | data(ExampleDataUncor)
BetaHat <- ExampleDataUncor$BetaHat
SE <- ExampleDataUncor$SE
traitNames <- paste("Disease", 1:10, sep = "")
SNP1 <- "rs1234"
result <- cpbayes_uncor(BetaHat, SE, Phenotypes = traitNames, Variant = SNP1)
## Not run: forest_cpbayes(result, level = 0.05)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.