Calculate peak height metrics for samples.
calculateHeight(
data,
ref = NULL,
na.replace = NULL,
add = TRUE,
exclude = NULL,
sex.rm = FALSE,
qs.rm = FALSE,
kit = NULL,
ignore.case = TRUE,
exact = FALSE,
word = FALSE,
debug = FALSE
)
data.frame with with at least columns 'Sample.Name', 'TPH', and 'Peaks'.
data.frame with at least columns 'Sample.Name' and 'Height'.
data.frame with at least columns 'Sample.Name' and 'Allele'.
replaces NA values in the final result.
logical default is TRUE which will add or overwrite columns 'TPH', 'Peaks', 'H', and 'Proportion' in the provided 'data'.
character vector (case sensitive) e.g. "OL" excludes rows with "OL" in the 'Allele' column.
logical, default FALSE to include sex markers in the analysis.
logical, default TRUE to exclude quality sensors from the analysis.
character, required if sex.rm=TRUE or qs.rm=TRUE to define the kit.
logical TRUE ignores case in sample name matching.
logical TRUE for exact sample name matching.
logical TRUE to add word boundaries to sample name matching.
logical indicating printing debug information.
Calculates the total peak height (TPH), and number of observed peaks (Peaks), for each sample by default. If a reference dataset is provided average peak height (H), and profile proportion (Proportion) are calculated.
H is calculated according to the formula: \(H = sum(peak heights)/(n[het] + 2n[hom]\) Where: n[het] = number of observed heterozygous alleles n[hom] = number of observed homozygous alleles
Tip: If it is known that all expected peaks are observed and no unexpected peaks are present, the dataset can be used as a reference for itself.
Note: If a reference dataset is provided the known alleles will be extracted from the dataset.
Torben Tvedebrink, Poul Svante Eriksen, Helle Smidt Mogensen, Niels Morling, Evaluating the weight of evidence by using quantitative short tandem repeat data in DNA mixtures Journal of the Royal Statistical Society: Series C (Applied Statistics), Volume 59, Issue 5, 2010, Pages 855-874, 10.1111/j.1467-9876.2010.00722.x. http://dx.doi.org/10.1111/j.1467-9876.2010.00722.x