View source: R/summarize_dataset.R
make_dist_mat | R Documentation |
Compare the genotype of each sample to each other sample in a given results summary data frame, and create a between-sample distance matrix. This will be a symmetric matrix, unlike what make_dist_mat_known produces.
make_dist_mat(results_summary, dist_func = calc_genotype_distance)
results_summary |
cross-sample summary data frame as produced by analyze_dataset. |
dist_func |
function to calculate inter-sample distances. Should take two vectors, one for each genotype, with two values per locus corresponding to the two alleles. |
matrix of cross-sample distance values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.