report_genotypes: Create genotype summary table

View source: R/report.R

report_genotypesR Documentation

Create genotype summary table

Description

Report the genotypes present in a processed dataset in a concise data frame. This will arrange the allele names into a wide-format table with unique samples on rows and loci on columns, do some automatic cleanup on the columns, and show closest-matching individuals per entry, if given. All NA entries are replaced with blank strings or optionally (for NA Replicates or untested sample/locus combinations) other custom placeholder text.

Usage

report_genotypes(
  results,
  closest = NULL,
  na_replicates = cfg("report_na_replicates"),
  na_alleles = cfg("report_na_alleles")
)

Arguments

results

list of results data as produced by analyze_dataset.

closest

list of closest matches as produced by find_closest_matches.

na_replicates

text to replace NA entries with for the Replicates column.

na_alleles

text to replace NA entries with for the allele names

Value

data frame showing summary of genotypes.


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