summarize_attribute: Create Summary Attribute Table

View source: R/summarize_dataset.R

summarize_attributeR Documentation

Create Summary Attribute Table

Description

Tabulate a single arbitrary attribute across loci, assuming repeats by two for the alleles. This is used for color-coding summary heatmaps (see plot_heatmap) on top of the attribute values, like Homozygous or ProminentSeqs.

Usage

summarize_attribute(results_summary, attrib, repeats = 2)

Arguments

results_summary

cross-sample summary data frame as produced by analyze_dataset.

attrib

name of column from results_summary to tabulate.

repeats

number of times to repeat each column, for matching with two alleles per entry.

Value

data frame of attribute across samples and loci.


ressy/microsat documentation built on Aug. 24, 2023, 10:09 a.m.