Learn R Programming

strvalidator (version 0.1)

addZygosity: Add zygosity

Description

addZygosity Adds the zygosity for each marker.

Usage

addZygosity(data, ref, byName = TRUE, ignoreCase = TRUE,
    matchSource = "ref")

Arguments

data
data frame containing at least columns 'Sample.Name', 'Marker', and 'Alleles'.
ref
data frame containing at least columns 'Sample.Name', 'Marker', and 'Alleles'.
byName
if TRUE matching of samples and ref by name, if FALSE by position.
matchSource
if 'ref' sample names from 'ref' is used as source for matching. Allowes for partial matching of sample names (e.g. 'AB' matches '01_ABc'). NB! names in 'ref' must be unique to sample names refering to a single DNA source. If 'data' sample nam
ignoreCase
If TRUE name matching is case insensitive.

Value

  • data.frame the original data frame containing additional columns.

Details

Compares a data set to reference profiles. Adds zygosity (i.e. the number of expected peaks) to a new column in 'data'.