View source: R/expected_variants.R
expected_variants | R Documentation |
This function combines the Number of Variants and AFS functions to produces the expected number of variants per Kb in each MAC bin
expected_variants(Total_num_var, mac_bin_prop)
Total_num_var |
estimated total number of variants in the region of interest |
mac_bin_prop |
The MAC bins to use, with three columns: Lower, Upper, and Prop. Lower and Upper define the MAC bins boundaries and Prop is the proportion of variants in each respective bin. Only define for rare variants |
data frame with the MAC bins and expected variants
data('afs_afr') mac <- afs_afr[,c(1:2)] expected_variants(Total_num_var = 19.029*nvariant(pop='AFR', N = 8128), mac_bin_prop = afs(mac_bins = mac, pop = 'AFR'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.