filterProfile: Filter out profiles from DNA results
Description
filterProfile
Filters out the result matching a
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'. NB! addMissingLoci overrides keepNA.Usage
filterProfile(data, ref, addMissingLoci = FALSE, keepNA = FALSE,
ignoreCase = TRUE, debug = FALSE)
Arguments
data
data frame with genotype data in 'slim'
format.
ref
data frame with reference profile in 'slim'
format.
keepNA
logical. FALSE discards NA alleles. TRUE
keep loci/sample even if no matching allele.
addMissingLoci
logical. TRUE add loci present in
ref but not in data. Overrides keepNA=FALSE.
ignoreCase
logical TRUE ignore case.
debug
logical indicating printing debug
information.
Value
- data.frame with extracted result.
Details
Returns data where allele names match 'ref' allele names.
Required columns are: 'Sample.Name', 'Marker', and
'Allele'.