generate_dist_mat: Generate a distance matrix from a matrix of predictors

Description Usage Arguments Details

View source: R/informative_bayesian_mpra.R

Description

Given an nxd matrix of variant annotations, produce an nxn distance matrix describing the inter-variant distances in annotation space

Usage

1
generate_dist_mat(predictors, log_distance = TRUE)

Arguments

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)

Details

the predictors need to be ordered by snp_id in the same order as they appear in mpra_data


andrewGhazi/bayesianMPRA documentation built on May 28, 2019, 4:56 p.m.