Filter peaks from profiles.
filterProfile(
data,
ref = NULL,
add.missing.loci = FALSE,
keep.na = FALSE,
ignore.case = TRUE,
exact = FALSE,
word = FALSE,
invert = FALSE,
sex.rm = FALSE,
qs.rm = FALSE,
kit = NULL,
filter.allele = TRUE,
debug = FALSE
)
data.frame with extracted result.
data frame with genotype data in 'slim' format.
data frame with reference profile in 'slim' format.
logical. TRUE add loci present in ref but not in data. Overrides keep.na=FALSE.
logical. FALSE discards NA alleles. TRUE keep loci/sample even if no matching allele.
logical TRUE ignore case.
logical TRUE use exact matching of sample names.
logical TRUE adds word boundaries when matching sample names.
logical TRUE filter peaks NOT matching the reference.
logical TRUE removes sex markers defined by 'kit'.
logical TRUE removes quality sensors defined by 'kit'.
character string defining the kit used. If NULL automatic detection will be attempted.
logical TRUE filter known alleles. FALSE increase the performance if only sex markers or quality sensors should be removed.
logical indicating printing debug information.
Filters out the peaks matching (or not matching) specified known profiles from typing data containing 'noise' such as stutters. If 'ref' does not contain a 'Sample.Name' column it will be used as reference for all samples in 'data'. The 'invert' option filters out peaks NOT matching the reference (e.g. drop-in peaks). Sex markers and quality sensors can be removed. NB! add.missing.loci overrides keep.na. Returns data where allele names match/not match 'ref' allele names. Required columns are: 'Sample.Name', 'Marker', and 'Allele'.