r2_to_r | R Documentation |
Infers which LD correlation metric the LD_matrix
currently contains,
and converts it to the requested LD correlation metric.
NOTE: Since +/- valence cannot be recovered from an
r2 matrix,
r2
can only be converted to absolute
r.
r2_to_r(LD_matrix, LD_path = "", stats = "R", verbose = TRUE)
LD_matrix |
LD matrix. |
LD_path |
[Optional] Path where LD matrix is stored. This is used to determine whether the matrix has already been converted to absolute r based on the presence of the "rAbsolute" substring (to avoid taking the square root twice). |
stats |
The linkage disequilibrium measure to be calculated.
Can be |
verbose |
Print messages. |
Named list containing the LD matrix and which LD metric is has been formatted to.
LD_matrix <- echodata::BST1_LD_matrix
r2r_out <- r2_to_r(LD_matrix = LD_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.