View source: R/Pop_Gen_setup.R
GeneticDistanceMatrix | R Documentation |
This function calculates the genetic distance matrix from a given gene identity matrix.
GeneticDistanceMatrix(J = matrix)
J |
The Gene Identity Matrix created using GeneIdentityMatrix |
The Genetic Distance Matrix
gene_identity_matrix <- matrix(c(
0.3164550, 0.2836333, 0.2760485,
0.2836333, 0.3106084, 0.2867215,
0.2760485, 0.2867215, 0.3338663
), nrow = 3, byrow = TRUE,
dimnames = list(paste0("Sample", 1:3), paste0("Sample", 1:3)))
GeneticDistanceMatrix(gene_identity_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.