make_dist_mat: Make distance matrix for set of samples

View source: R/summarize_dataset.R

make_dist_matR Documentation

Make distance matrix for set of samples

Description

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.

Usage

make_dist_mat(results_summary, dist_func = calc_genotype_distance)

Arguments

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.

Value

matrix of cross-sample distance values


ShawHahnLab/microsat documentation built on Aug. 25, 2023, 11:16 p.m.