Usage
calculateLb(data, ref = NULL, option = "prop", by.dye = FALSE, ol.rm = TRUE, sex.rm = FALSE, qs.rm = FALSE, na = NULL, kit = NULL, ignore.case = TRUE, word = FALSE, exact = FALSE, debug = FALSE)
Arguments
data
data.frame containing at least
'Sample.Name', 'Marker', and 'Height'.
ref
data.frame containing at least 'Sample.Name', 'Marker', 'Allele'.
If provided alleles matching 'ref' will be extracted from 'data'
(see filterProfile
). option
character: 'prop' for proportional Lb, 'norm' for normalised
LB, and 'cent' for centred Lb.
by.dye
logical. Default is FALSE for global Lb, if TRUE Lb is calculated
within each dye channel.
ol.rm
logical. Default is TRUE indicating that off-ladder 'OL' alleles
will be removed.
sex.rm
logical. Default is FALSE indicating that all markers will be
considered. If TRUE sex markers will be removed.
qs.rm
logical. Default is TRUE indicating that all quality sensors
will be removed.
na
numeric. Numeric to replace NA values e.g. locus dropout can be
given a peak height equal to the limit of detection threshold, or zero.
Default is NULL indicating that NA will be treated as missing values.
kit
character providing the kit name. Attempt to autodetect if NULL.
ignore.case
logical indicating if sample matching should ignore case.
Only used if 'ref' is provided and 'data' is filtered.
word
logical indicating if word boundaries should be added before sample matching.
Only used if 'ref' is provided and 'data' is filtered.
exact
logical indicating if exact sample matching should be used.
Only used if 'ref' is provided and 'data' is filtered.
debug
logical indicating printing debug information.