knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.width = 5, fig.height = 4 )
library(AllelicHeterogenitySimulator)
The vignette provides code and some
options(warn = -1)
install.packages("devtools", repos='http://cran.us.r-project.org') library(devtools) install_github("cnfoley/Sun-et-al-2021-protein-coding-variants-in-human-disease", build_vignettes = FALSE) install_github("cnfoley/mrclust", build_vignettes = TRUE) library(AllelicHeterogenitySimulator) browseVignettes("AllelicHeterogenitySimulator")
...
Here we replicate the results from...We begin by loading the package and the SBP/CAD summary data. These data are avaiable with the package and can be found by typing
library(AllelicHeterogenitySimulator) betas <- AllelicHeterogenitySimulator::betas head(betas)
In the... (UKB) and (FG). A description of these data is found by typing:
?AllelicHeterogenitySimulator::betas
The function "allelic_het_simulator" (minimally) requires the following summary data information:
To run ...
############################ ########### SBP-CAD analysis ############################ results = allelic_het_simulator(betas = betas, n_simulated_datasets = 2);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.