knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.width = 5, 
  fig.height = 4
)
library(AllelicHeterogenitySimulator)

Introduction

The vignette provides code and some

Installation

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")

Reproducing the allelic heterogeneity simulator

...

Replicating Figure 1d

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:

Running the simulator

To run ...

############################
########### SBP-CAD analysis
############################

results = allelic_het_simulator(betas = betas, n_simulated_datasets = 2);


cnfoley/Sun-et-al-2021-protein-coding-variants-in-human-disease documentation built on Dec. 19, 2021, 5:19 p.m.