Description Usage Arguments Details
View source: R/informative_bayesian_mpra.R
Given an nxd matrix of variant annotations, produce an nxn distance matrix describing the inter-variant distances in annotation space
1 | generate_dist_mat(predictors, log_distance = TRUE)
|
predictors |
an n x d data frame of predictors |
log_distance |
a logical indicating to use the log1p of the distances (TRUE) or the raw euclidean distances (FALSE) |
the predictors need to be ordered by snp_id in the same order as they appear in mpra_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.