calculateHeterozygous: Calculate heterozygous loci
Description
calculateHeterozygous Calculates the number of
alleles in each marker.
Usage
calculateHeterozygous(data, debug = FALSE)
Arguments
data
Data frame containing at least columns
'Sample.Name', 'Marker, and 'Allele*'.
debug
logical indicating printing debug
information.
Value
data.frame the original data frame containing additional
columns.
Details
Adds a column 'Heterozygous' to 'data'. Calculates the
number of unique values in the 'Allele*' columns for each
marker. Indicates heterozygous loci as '1' and homozygous
as '0'. Sample names must be unique.