Description Usage Arguments Details Value
View source: R/informative_bayesian_mpra.R
For the ith variant, adaptively produce a vector of weightings such that at minimum min_num_contributing variants meaningfully contribute (i.e. cumsum(sortedWeights)[30] <= .99) arguments after the 2nd are heuristics that may need tuning
1 2 | find_weights(i, dist_mat, min_dist_kernel, min_num_contributing = 30,
increase_fold = 1.333)
|
i |
the index of the variant in the assay |
dist_mat |
annotation-based distance matrix |
min_dist_kernel |
the minimum kernel possible to use in the annotation space |
min_num_contributing |
the minimum number of variants that must contribute to the ith variant's prior |
increase_fold |
the multiplicative amount by which to increase the
kernel in the case the current kernel doesn't allow at least
|
The kernel is initialized at some small, pre-computed value then iteratively increased until there are "enough" variants contributing. This keeps the prior for one variant from being too strongly influenced by extremely close neighbors in annotation space.
a similarity-based vector of weights of the other n-1 variants
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.