View source: R/summarize_dataset.R
make_dist_mat_known | R Documentation |
Compare the genotype of each sample in a given results summary to all known genotypes in the supplied table, and create a sample-to-known-genotype distance matrix.
make_dist_mat_known(
results_summary,
genotypes_known,
dist_func = calc_genotype_distance
)
results_summary |
cross-sample summary data frame as produced by analyze_dataset. |
genotypes_known |
data frame of known genotypes, with one row per individual per locus, and columns "Name", "Locus", "Allele1Seq", "Allele2Seq". See load_genotypes. |
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 sample-to-individual distance values, with individuals from genotypes_known on rows and samples on columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.