match_known_genotypes: Associate known genotypes with samples

View source: R/categorize.R

match_known_genotypesR Documentation

Associate known genotypes with samples

Description

Using the Name column of the given results summary data frame, pair each called genotype with the known alleles. A data frame with two columns, CorrectAllele1Seq and CorrectAllele2Seq, is returned. If matching entries are found in Allele1Seq and/or Allele2Seq the order will be preserved, and at this point the two allele entries should match up directly for genotypes that were called correctly.

Usage

match_known_genotypes(results_summary, genotypes_known)

Arguments

results_summary

cross-sample summary data frame as produced by analyze_dataset.

genotypes_known

data frame of known genotypes that should be compared to the observed genotypes in the results, as loaded by load_genotypes.

Value

data frame with two columns for the two correct alleles, and rows matching the input summary table.


ShawHahnLab/chiimp documentation built on Aug. 20, 2023, 1:41 a.m.