generate_distance_matrix: Generate a distance matrix from a matrix of annotations

Description Usage Arguments

View source: R/prior_fitting.R

Description

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

Usage

1
2
3
4
5
6
generate_distance_matrix(
  annotations,
  log_distance = FALSE,
  scale_annotations = TRUE,
  verbose = TRUE
)

Arguments

annotations

an n x d data frame of annotations

log_distance

a logical indicating to use the log1p of the distances (TRUE) or the raw euclidean distances (FALSE)

scale_annotations

logical indicating whether to base::scale to center and scale annotations

verbose

logical indicating whether to print messages


andrewGhazi/malacoda documentation built on Aug. 2, 2020, 12:54 a.m.